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

Detect the presence of a message-body in a request #1

Open
wants to merge 1 commit into
base: error-handling-refactor
Choose a base branch
from

Conversation

generalov
Copy link

Hello!

I'm noticed series of changes related to the data presence detection in the HttpRequest. It was based on request.raw_post_data and set of HTTP request methods (POST, PUT, DELETE).

There is another way. "The presence of a message-body in a request is signaled by the inclusion of a Content-Length or Transfer-Encoding header field in the request's message-headers." See http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.3 .

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.

1 participant