fix non empty paths in p2p http proxy
License: MIT Signed-off-by: Ian Preston <ianopolous@protonmail.com>
Dr Ian Preston committed
Oct 2, 2018 at 22:23 UTC
f052d18471b3bcbf72f7557ae5262459571b15cc
1 file changed
+1
-1
core/corehttp/proxy.go
+1
-1
@@ -62,7 +62,7 @@ func parseRequest(request *http.Request) (*proxyRequest, error) {
62
return nil, err
63
}
64
65
- return &proxyRequest{peerID, split[4], split[5]}, nil
65
+ return &proxyRequest{peerID, split[4], "/" + split[5]}, nil
66
}
67
68
func handleError(w http.ResponseWriter, msg string, err error, code int) {