]> 127.0.0.1 Git - front/.git/commitdiff
Update http.go
authorqydysky <qydysky@foxmail.com>
Tue, 6 Aug 2024 03:03:20 +0000 (11:03 +0800)
committerGitHub <noreply@github.com>
Tue, 6 Aug 2024 03:03:20 +0000 (11:03 +0800)
http.go

diff --git a/http.go b/http.go
index 9a98c0156cf3bfd9be3f8a16e633325449c6498b..55dbc081e3b890a5a10ca1247f78f60cc6198e6d 100644 (file)
--- a/http.go
+++ b/http.go
@@ -31,7 +31,7 @@ func httpDealer(ctx context.Context, w http.ResponseWriter, r *http.Request, rou
 
                url := chosenBack.To
                if chosenBack.PathAdd() {
-                       url += r.RequestURI
+                       url += path.Base(r.RequestURI)
                }
 
                url = "http" + url