Skip to content

Skip auto-generation of Content-Type header.#507

Merged
asvetlov merged 2 commits intoaio-libs:masterfrom
elastic-coders:skip_content_type_auto_header
Sep 14, 2015
Merged

Skip auto-generation of Content-Type header.#507
asvetlov merged 2 commits intoaio-libs:masterfrom
elastic-coders:skip_content_type_auto_header

Conversation

@mpaolini
Copy link
Contributor

Content-Type header automatic generation did not honor
the documented skip_auto_headers param.

With this patch we correctly skip generation of this header
while documenting that it is not possible to do so for the
Content-Length header.

See Issue #379 for details.

Content-Type header automatic generation did not honor
the documented `skip_auto_headers` param.

With this patch we correctly skip generation of this header
while documenting that it is not possible to do so for the
`Content-Length` header.

See Issue aio-libs#379 for details.
Copy link
Member

Choose a reason for hiding this comment

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

This one looks wrong. If we don't set content length here, we should fallback to chunked = True mode. Otherwise we'll violate the spec.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

whoa Yep you're right, I'll fix this right away

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok fixed

Even when the caller asked to skip it!
@mpaolini
Copy link
Contributor Author

also fixes #457

asvetlov added a commit that referenced this pull request Sep 14, 2015
…ader

Skip auto-generation of Content-Type header.
@asvetlov asvetlov merged commit dcf843e into aio-libs:master Sep 14, 2015
@asvetlov
Copy link
Member

Merged. Thanks.

@lock
Copy link

lock bot commented Oct 30, 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 30, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 30, 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.

3 participants