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

Method ChangePath

agent/utils/nginx/components/location.go:250–259  ·  view source on GitHub ↗
(Modifier string, Match string)

Source from the content-addressed store, hash-verified

248}
249
250func (l *Location) ChangePath(Modifier string, Match string) {
251 if Match != "" && Modifier != "" {
252 l.Parameters = []string{Modifier, Match}
253 }
254 if Match != "" && Modifier == "" {
255 l.Parameters = []string{Match}
256 }
257 l.Modifier = Modifier
258 l.Match = Match
259}
260
261func (l *Location) AddBrowserCache(cacheTime int, cacheUint string) {
262 l.RemoveDirective("add_header", []string{"Cache-Control", "no-cache"})

Callers 5

OperateProxyMethod · 0.95
createProxyFileFunction · 0.80
addProxyFunction · 0.80
addMCPProxyFunction · 0.80
UpdatePathAuthBasicMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected