This commit is contained in:
b3tt3rfun 2018-03-18 09:52:23 +00:00 committed by GitHub
commit 06fc9c895f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,6 +83,9 @@ func (p *HTTPProxy) logRequestAction(req *http.Request, jsreq *JSRequest) {
} }
func (p *HTTPProxy) logResponseAction(req *http.Request, jsres *JSResponse) { func (p *HTTPProxy) logResponseAction(req *http.Request, jsres *JSResponse) {
if len(jsres.Body) == 0 {
jsres.ReadBody()
}
p.sess.Events.Add(p.Name+".spoofed-response", struct { p.sess.Events.Add(p.Name+".spoofed-response", struct {
To string To string
Method string Method string