Merge pull request #437 from caiyixiang/Reference_constant

Reference constant
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-03-14 09:36:29 -03:00 committed by GitHub
commit c67e1069c7

View file

@ -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)