From 4698bdba54058ae98ef893224068d4102500c529 Mon Sep 17 00:00:00 2001 From: evilsocket Date: Thu, 22 Feb 2018 13:54:00 +0100 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- modules/http_proxy_js_response.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/http_proxy_js_response.go b/modules/http_proxy_js_response.go index ea372e99..5816ad3b 100644 --- a/modules/http_proxy_js_response.go +++ b/modules/http_proxy_js_response.go @@ -100,7 +100,7 @@ func (j *JSResponse) ReadBody() string { j.Body = string(raw) j.bodyRead = true - // reset the request body to the original unread state + // reset the response body to the original unread state j.resp.Body = ioutil.NopCloser(bytes.NewBuffer(raw)) return j.Body