From f052d18471b3bcbf72f7557ae5262459571b15cc Mon Sep 17 00:00:00 2001 From: Dr Ian Preston Date: Tue, 2 Oct 2018 22:23:30 +0100 Subject: [PATCH] fix non empty paths in p2p http proxy License: MIT Signed-off-by: Ian Preston --- core/corehttp/proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/corehttp/proxy.go b/core/corehttp/proxy.go index 66baf8826..200b3276f 100644 --- a/core/corehttp/proxy.go +++ b/core/corehttp/proxy.go @@ -62,7 +62,7 @@ func parseRequest(request *http.Request) (*proxyRequest, error) { return nil, err } - return &proxyRequest{peerID, split[4], split[5]}, nil + return &proxyRequest{peerID, split[4], "/" + split[5]}, nil } func handleError(w http.ResponseWriter, msg string, err error, code int) {