From f53f360c74082d34e3e4edff1b0896a1dcece774 Mon Sep 17 00:00:00 2001 From: Ice3man Date: Fri, 27 May 2022 22:36:42 +0530 Subject: [PATCH] Fixed websocket status-101 response reading for http (#2081) --- v2/pkg/protocols/http/request.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2/pkg/protocols/http/request.go b/v2/pkg/protocols/http/request.go index e7a845f1..796a249e 100644 --- a/v2/pkg/protocols/http/request.go +++ b/v2/pkg/protocols/http/request.go @@ -534,7 +534,7 @@ func (request *Request) executeRequest(reqURL string, generatedRequest *generate return errors.Wrap(err, "could not read http response with redirect chain") } } else { - dumpedResponse = []redirectedResponse{{fullResponse: dumpedResponseHeaders, headers: dumpedResponseHeaders}} + dumpedResponse = []redirectedResponse{{resp: resp, fullResponse: dumpedResponseHeaders, headers: dumpedResponseHeaders}} } // if nuclei-project is enabled store the response if not previously done