Skip to content

Commit

Permalink
修复suffix 不可用的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
canc3s authored Jul 13, 2022
1 parent a8cffd5 commit 8f0a53f
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 8f0a53f

Please sign in to comment.