Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Avoid crash for responses without 'content-type' header #222

Merged
merged 1 commit into from
Mar 1, 2016

Conversation

fbaiodias
Copy link
Contributor

For example, when the response is a 200 OK without body

@dignifiedquire
Copy link
Contributor

can we have a test for this?

@fbaiodias
Copy link
Contributor Author

AFAIK go-ipfs which is used on the tests always replies with content-type, I got this problem while working on js-ipfs, as such I added a test that uses it's own very basic http server.
Let me know what you think :octocat:

@daviddias
Copy link
Contributor

@xicombd LGTM, but since it is such a odd looking test, could you add 2 lines of code comments explaining why that test exists, otherwise it might get quickly deleted by someone in the future

@fbaiodias
Copy link
Contributor Author

@diasdavid added the the comments

daviddias added a commit that referenced this pull request Mar 1, 2016
Avoid crash for responses without 'content-type' header
@daviddias daviddias merged commit f846548 into ipfs-inactive:master Mar 1, 2016
@fbaiodias fbaiodias deleted the fix-content-type branch March 1, 2016 11:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants