Merge pull request #437 from caiyixiang/Reference_constant
Reference constant
This commit is contained in:
commit
c67e1069c7
|
|
@ -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 New Issue