From b091c7f3646802ee536e7d3ea6e9f66da03bb991 Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Wed, 9 Oct 2024 15:02:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8F=8D=E5=90=91=E4=BB=A3=E7=90=86?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E6=9B=BF=E6=8D=A2=E5=A2=9E=E5=8A=A0=20sub=5F?= =?UTF-8?q?filter=5Ftypes=20=E5=8F=82=E6=95=B0=20(#6661)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs https://github.com/1Panel-dev/1Panel/issues/6490 --- backend/utils/nginx/components/location.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/utils/nginx/components/location.go b/backend/utils/nginx/components/location.go index c407c0ede..80620500d 100644 --- a/backend/utils/nginx/components/location.go +++ b/backend/utils/nginx/components/location.go @@ -234,11 +234,13 @@ func (l *Location) AddSubFilter(subFilters map[string]string) { } l.UpdateDirective("proxy_set_header", []string{"Accept-Encoding", `""`}) l.UpdateDirective("sub_filter_once", []string{"off"}) + l.UpdateDirective("sub_filter_types", []string{"*"}) } func (l *Location) RemoveSubFilter() { l.RemoveDirective("sub_filter", []string{}) l.RemoveDirective("proxy_set_header", []string{"Accept-Encoding", `""`}) l.RemoveDirective("sub_filter_once", []string{"off"}) + l.RemoveDirective("sub_filter_types", []string{"*"}) l.Replaces = nil }