提交 cba97300 作者: Dr Ian Preston 提交者: Steven Allen

fix non empty paths in p2p http proxy

License: MIT
Signed-off-by: 's avatarIan Preston <ianopolous@protonmail.com>
上级 75a58802
......@@ -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) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论