From 30ce5771c114d3ffa0fdcd1c6e8530752fa04899 Mon Sep 17 00:00:00 2001 From: zzMark <2480006442@qq.com> Date: Tue, 9 Sep 2025 09:31:38 +0000 Subject: [PATCH] =?UTF-8?q?update=20server/http=5Fauth.go.=20=E4=BF=9D?= =?UTF-8?q?=E7=95=99=E5=8E=9F=E6=96=87=E4=BB=B6=E5=90=8D=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=EF=BC=8C=E4=BE=BF=E4=BA=8E=E7=94=9F=E6=88=90=E9=92=88=E5=AF=B9?= =?UTF-8?q?=E5=8D=95=E4=B8=AA=E6=96=87=E4=BB=B6=E7=9A=84=E9=89=B4=E6=9D=83?= =?UTF-8?q?=EF=BC=8C=E8=BF=87=E6=9C=9F=E6=97=B6=E9=97=B4=E5=A4=84=E7=90=86?= =?UTF-8?q?=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zzMark <2480006442@qq.com> --- server/http_auth.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/http_auth.go b/server/http_auth.go index 405ed81..a3bf0a2 100644 --- a/server/http_auth.go +++ b/server/http_auth.go @@ -26,11 +26,13 @@ func (c *Server) CheckAuth(w http.ResponseWriter, r *http.Request) bool { } req = httplib.Post(Config().AuthUrl) req.SetTimeout(time.Second*10, time.Second*10) - // req.Param("__path__", r.URL.Path) - // req.Param("__query__", r.URL.RawQuery) for k, _ := range r.Form { req.Param(k, r.FormValue(k)) } + + req.Param("__path__", r.URL.Path) + req.Param("__query__", r.URL.RawQuery) + for k, v := range r.Header { req.Header(k, v[0]) } -- Gitee