diff --git a/internal/reverse/response.go b/internal/reverse/response.go index e1e6bfe..71c3fe2 100644 --- a/internal/reverse/response.go +++ b/internal/reverse/response.go @@ -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 {