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

Remove Content-Length when you enable chunked encoding #1933

Conversation

julien-duponchelle
Copy link
Contributor

This ensure that no content lenght header remain after you enable
chunked.

What do these changes do?

Remove Content-Length when you enable chunked encoding

This ensure that no content lenght header remain after you enable chunked.

Are there changes in behavior for the user?

No Content-Length will be send when you have enable chunked encoding

Related issue number

No issue

Checklist

  • [*] I think the code is well written
  • [*] Unit tests for the changes exist
  • [*] Documentation reflects the changes
  • [*] If you provide code modification, please add yourself to CONTRIBUTORS.txt
    • The format is <Name> <Surname>.
    • Please keep alphabetical order, the file is sorted by names.
  • [*] Add a new entry to CHANGES.rst
    • Choose any open position to avoid merge conflicts with other PRs.
    • Add a link to the issue you are fixing (if any) using #issue_number format at the end of changelog message. Use Pull Request number if there are no issues for PR or PR covers the issue only partially.

This ensure that no content lenght header remain after you enable
chunked.
@fafhrd91
Copy link
Member

This have to be exception. This is mistake to supply content-length and enable chunking.

@hubo1016
Copy link
Contributor

I believe Content-Length header is already removed in _start method.

@julien-duponchelle
Copy link
Contributor Author

julien-duponchelle commented May 31, 2017 via email

@asvetlov
Copy link
Member

RuntimeError is enough I guess.
@noplay would you create a PR for this fix?

@julien-duponchelle
Copy link
Contributor Author

julien-duponchelle commented Jun 1, 2017 via email

@fafhrd91
Copy link
Member

fafhrd91 commented Jun 1, 2017

Against master

@lock
Copy link

lock bot commented Oct 28, 2019

This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.

If you feel like there's important points made in this discussion,
please include those exceprts into that new issue.

@lock lock bot added the outdated label Oct 28, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants