diff --git a/Cmd b/Cmd index f96fc6e..9979560 100755 Binary files a/Cmd and b/Cmd differ diff --git a/Gateway.go b/Gateway.go index 97e46a0..377f449 100644 --- a/Gateway.go +++ b/Gateway.go @@ -111,12 +111,13 @@ func webGatewayHandler(backend *core.Backend) func(w http.ResponseWriter, r *htt // Assume it is in the format "/[blockchain public key]/[file hash]". // Remove slash prefix and suffix. + fmt.Println(r.URL.Path) pathA := strings.TrimPrefix(strings.TrimSuffix(r.URL.Path, "/"), "/") pathParts := strings.Split(pathA, "/") if len(pathParts) != 1 && len(pathParts) != 2 { http.Error(w, "404 not found", http.StatusNotFound) - //return + return } // Default timeout for connection is 10 seconds. This will be an optional parameter in the future.