Skip to content

Commit

Permalink
Merge pull request #17 from canc3s/master
Browse files Browse the repository at this point in the history
修复suffix 不可用的问题
  • Loading branch information
Becivells authored Jul 13, 2022
2 parents a8cffd5 + 8f0a53f commit f4ec81c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/reverse/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (reverse *Reverse) ModifyResponse(shost string) func(response *http.Respons
case "prefix":
urlmatch = strings.HasPrefix(response.Request.URL.Path, rule.URL)
case "suffix":
urlmatch = strings.HasPrefix(response.Request.URL.Path, rule.URL)
urlmatch = strings.HasSuffix(response.Request.URL.Path, rule.URL)
}

if urlmatch {
Expand Down

0 comments on commit f4ec81c

Please sign in to comment.