Merge pull request #437 from caiyixiang/Reference_constant
Reference constant
This commit is contained in:
commit
c67e1069c7
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ func buildLocation(input interface{}) string {
|
|||
|
||||
path := location.Path
|
||||
if len(location.Redirect.Target) > 0 && location.Redirect.Target != path {
|
||||
if path == "/" {
|
||||
if path == slash {
|
||||
return fmt.Sprintf("~* %s", path)
|
||||
}
|
||||
return fmt.Sprintf("~* ^%s", path)
|
||||
|
|
Loading…
Reference in a new issue