Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken MIME header in server response prevents function #18

Open
C-Sto opened this issue Dec 17, 2018 · 1 comment
Open

Broken MIME header in server response prevents function #18

C-Sto opened this issue Dec 17, 2018 · 1 comment
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@C-Sto
Copy link
Owner

C-Sto commented Dec 17, 2018

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
Copy link
Owner Author

C-Sto commented Dec 17, 2018

golang/go#21290

@C-Sto C-Sto added bug Something isn't working wontfix This will not be worked on labels Dec 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant