fix non empty paths in p2p http proxy

License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
This commit is contained in:
Dr Ian Preston 2018-10-02 22:23:30 +01:00 committed by Steven Allen
parent 90f5bad718
commit f052d18471

View File

@ -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) {