Skip to content

Commit f4ec81c

Browse files
authored
Merge pull request #17 from canc3s/master
修复suffix 不可用的问题
2 parents a8cffd5 + 8f0a53f commit f4ec81c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/reverse/response.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func (reverse *Reverse) ModifyResponse(shost string) func(response *http.Respons
7272
case "prefix":
7373
urlmatch = strings.HasPrefix(response.Request.URL.Path, rule.URL)
7474
case "suffix":
75-
urlmatch = strings.HasPrefix(response.Request.URL.Path, rule.URL)
75+
urlmatch = strings.HasSuffix(response.Request.URL.Path, rule.URL)
7676
}
7777

7878
if urlmatch {

0 commit comments

Comments
 (0)