Skip to content

Commit

Permalink
Remove already compiled expression from the URL rewriter code
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasinsaurralde authored and buger committed May 11, 2018
1 parent 52b0fe7 commit e7f602e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion mw_url_rewrite.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ func urlRewrite(meta *apidef.URLRewriteMeta, r *http.Request) (string, error) {
if len(matchGroups) > 0 {
newpath = rewriteToPath
// get the indices for the replacements:
dollarMatch := regexp.MustCompile(`\$\d+`) // Prepare our regex
replaceGroups := dollarMatch.FindAllStringSubmatch(rewriteToPath, -1)

log.Debug(matchGroups)
Expand Down

0 comments on commit e7f602e

Please sign in to comment.