(Modifier string, Match string)
| 248 | } |
| 249 | |
| 250 | func (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 | |
| 261 | func (l *Location) AddBrowserCache(cacheTime int, cacheUint string) { |
| 262 | l.RemoveDirective("add_header", []string{"Cache-Control", "no-cache"}) |
no outgoing calls
no test coverage detected