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

fix: Allow 204 responses without a body #101

Merged
merged 1 commit into from
Aug 21, 2018

Conversation

cibernox
Copy link
Contributor

It turns out that 204 responses using fetch attempt to call new Response
with an empty string as a body, which is illegal and blows hard. The body
must be null.

It turns out that 204 responses using fetch attempt to call `new Response`
with an empty string as a body, which is illegal and blows hard. The body
must be null.
@jasonmit jasonmit merged commit 20b4125 into Netflix:master Aug 21, 2018
@jasonmit
Copy link
Contributor

I'll add a test or two before versioning. Thanks!

@cibernox
Copy link
Contributor Author

Yeah, I tried for 20m to find a good way to test it but I wasn't very sure how to do it.

@cibernox cibernox deleted the fix-broken-responses-without-body branch August 21, 2018 17:37
jasonmit added a commit that referenced this pull request Aug 21, 2018
jasonmit added a commit that referenced this pull request Aug 22, 2018
jasonmit added a commit that referenced this pull request Aug 22, 2018
jasonmit added a commit that referenced this pull request Aug 22, 2018
jasonmit added a commit that referenced this pull request Aug 22, 2018
jasonmit added a commit that referenced this pull request Aug 22, 2018
jasonmit added a commit that referenced this pull request Aug 22, 2018
jasonmit added a commit that referenced this pull request Aug 22, 2018
jasonmit added a commit that referenced this pull request Aug 22, 2018
jasonmit added a commit that referenced this pull request Aug 22, 2018
jasonmit added a commit that referenced this pull request Aug 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants