From c1a42ceac94c769226393f3b442ab403b99da069 Mon Sep 17 00:00:00 2001 From: zhengkunwang223 Date: Wed, 9 Oct 2024 14:54:13 +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?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 c407c0edecac..80620500dad7 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 }