MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / RemoveSubFilter

Method RemoveSubFilter

agent/utils/nginx/components/location.go:344–350  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

342}
343
344func (l *Location) RemoveSubFilter() {
345 l.RemoveDirective("sub_filter", []string{})
346 l.RemoveDirective("proxy_set_header", []string{"Accept-Encoding", `""`})
347 l.RemoveDirective("sub_filter_once", []string{"off"})
348 l.RemoveDirective("sub_filter_types", []string{"*"})
349 l.Replaces = nil
350}
351
352func (l *Location) AddCorsOption() {
353 l.RemoveCorsOption()

Callers 1

OperateProxyMethod · 0.95

Calls 1

RemoveDirectiveMethod · 0.95

Tested by

no test coverage detected