mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-22 10:57:42 +08:00
fix non empty paths in p2p http proxy
License: MIT Signed-off-by: Ian Preston <ianopolous@protonmail.com>
This commit is contained in:
parent
90f5bad718
commit
f052d18471
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user