recursebuster icon indicating copy to clipboard operation
recursebuster copied to clipboard

Broken MIME header in server response prevents function

Open C-Sto opened this issue 5 years ago • 1 comments

Found a server that responds with a strange header, seems to cause Golang's net/http lib to be unhappy.

Sample response header:

HTTP/1.1 500 Internal Server Error
Content-Length: 42
Content-Type: application/json; charset=utf-8
ETag: W/"etag-here"
XXXXXXXXXXXXXXXXXXXXXXXXXX
request-context: appId=cid-v1:guid-here
Access-Control-Allow-Origin: *
XXXXXXXXXXXXXXXXXXXXX

Error that will occur:

Get https://server.com/url: net/http: HTTP/1.x transport connection broken: malformed MIME header line: XXXXXXXXXXXXXXXXXXXXXXXXXX

C-Sto avatar Dec 17 '18 03:12 C-Sto

https://github.com/golang/go/issues/21290

C-Sto avatar Dec 17 '18 03:12 C-Sto