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

fixes #120 - content length zero for 204 response #121

Closed

Conversation

benjamine
Copy link

Safari apparently hangs waiting for the body when OPTIONS response is
204, content-length: 0 fixes that behavior.

@benjamine benjamine mentioned this pull request Jul 12, 2017
Copy link
Contributor

@dougwilson dougwilson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can just set the length for all status codes, since no body is ever written here for any code. Also, please add a test.

@benjamine benjamine force-pushed the feature/content-length-zero branch 2 times, most recently from a3775fd to fa206f3 Compare July 13, 2017 00:02
Safari apparently hangs waiting for the body when OPTIONS response is
204, content-length: 0 fixes that behavior.
@benjamine
Copy link
Author

thanks @dougwilson, I made those changes (added 1 test case for this, seems fine for the change but let me know if I'm missing conditions)

@dougwilson dougwilson self-assigned this Jul 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants