CompassSecurity/burp-copy-request-response

Missing Linebreak when Request Body is present

emanuelduss opened this issue · 1 comments

A POST request has no linebreaks after the body (a GET request has 2 linebreaks after the header). This results in missing linebreak before the response header when there is a request body:

POST / HTTP/1.1
Host: compass-security.com
User-Agent: curl/7.72.0
Accept: */*
Content-Length: 14
Content-Type: application/x-www-form-urlencoded
Connection: close

some-post-dataHTTP/1.1 308 Permanent Redirect
Location: https://compass-security.com/
Date: Thu, 29 Oct 2020 08:31:47 GMT
Content-Length: 18
Content-Type: text/plain; charset=utf-8
Connection: close

Permanent Redirect

--> Add linebreaks before response header if there are none.

Fixed in f309b5e.