Skip to content

Commit

Permalink
Rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Johnson committed Mar 24, 2022
1 parent eaae527 commit eee1dd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/corehttp/gateway_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ func (i *gatewayHandler) getOrHeadHandler(w http.ResponseWriter, r *http.Request
}
}

redirects, err := i.searchUpTreeForRedirects(r, urlPath)
redirects, err := i.searchUpTreeForRedirectFile(r, urlPath)
if err == nil {
redirected, newPath, err := i.redirect(w, r, redirects)
if err != nil {
Expand Down Expand Up @@ -852,7 +852,7 @@ func customResponseFormat(r *http.Request) string {
return ""
}

func (i *gatewayHandler) searchUpTreeForRedirects(r *http.Request, path string) (ipath.Resolved, error) {
func (i *gatewayHandler) searchUpTreeForRedirectFile(r *http.Request, path string) (ipath.Resolved, error) {
pathComponents := strings.Split(path, "/")

for idx := len(pathComponents); idx >= 3; idx-- {
Expand Down

0 comments on commit eee1dd5

Please sign in to comment.