misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2018-02-22 13:54:00 +01:00
commit 4698bdba54

View file

@ -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