From 8007a2a2b4ed3f4d3b4d261457328c20dfea50e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=94=E5=BF=B5?= <12574910+72wo@users.noreply.github.com> Date: Tue, 3 Feb 2026 20:34:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=AE=BA=E5=9D=9B=E7=BC=93?= =?UTF-8?q?=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/base/middleware/middleware.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/base/middleware/middleware.go b/modules/base/middleware/middleware.go index a516ef3f..4d2e131c 100644 --- a/modules/base/middleware/middleware.go +++ b/modules/base/middleware/middleware.go @@ -51,13 +51,13 @@ func StartServerProxy() { // Handle all requests with path prefix "/proxy/*" s.BindHandler("/bbs/*url", func(r *ghttp.Request) { var ( - originalPath = r.Request.URL.Path - proxyToPath = "/" + r.Get("url").String() + //originalPath = r.Request.URL.Path + proxyToPath = "/" + r.Get("url").String() ) // Rewrite the request path r.Request.URL.Path = proxyToPath // Log the proxy operation - g.Log().Infof(r.Context(), `proxy:"%s" -> backend:"%s"`, originalPath, proxyToPath) + //g.Log().Infof(r.Context(), `proxy:"%s" -> backend:"%s"`, originalPath, proxyToPath) // Ensure request body can be read multiple times if needed r.MakeBodyRepeatableRead(false) // Forward the request to the backend server