diff --git a/modules/http_proxy_js_response.go b/modules/http_proxy_js_response.go index cea84cb1..c7469bc4 100644 --- a/modules/http_proxy_js_response.go +++ b/modules/http_proxy_js_response.go @@ -64,10 +64,14 @@ func (j *JSResponse) UpdateHash() { } func (j *JSResponse) WasModified() bool { - // body was read if j.bodyRead == true { + // body was read + return true + } else if j.Body != "" { + // body was not read but just set return true } + // check if any of the fields has been changed newHash := j.NewHash() if newHash != j.refHash {