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 204 beavior #375

Merged
merged 3 commits into from Jun 19, 2015
Merged

Fix 204 beavior #375

merged 3 commits into from Jun 19, 2015

Conversation

rgrinberg
Copy link
Member

204's should not return a transfer encoding
Do not add transfer encoding if response code does not allow it
let headers = Header.add_transfer_encoding res.headers res.encoding in
let headers =
if allowed_body res
then Header.add_transfer_encoding res.headers res.encoding
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't this check to see if the response already has a Transfer-encoding header and not override it if so?

Copy link
Member Author

Choose a reason for hiding this comment

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

Probably. I'll take a look at this separately since this PR doesn't change this aspect of the behavior

rgrinberg added a commit that referenced this pull request Jun 19, 2015
@rgrinberg rgrinberg merged commit 088982e into mirage:master Jun 19, 2015
@rgrinberg rgrinberg deleted the fix_204_body branch June 19, 2015 03:24
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.

None yet

2 participants