Skip to content

Commit

Permalink
feat: 反向代理文本替换增加 sub_filter_types 参数 (#6661)
Browse files Browse the repository at this point in the history
Refs #6490
  • Loading branch information
zhengkunwang223 authored Oct 9, 2024
1 parent e069db3 commit b091c7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/utils/nginx/components/location.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit b091c7f

Please # to comment.