Skip to content

request.post() should raise HTTPRequestEntityTooLarge same as request.read() #3087

Closed
@samuelcolvin

Description

request.read()

if self._client_max_size \
and len(body) >= self._client_max_size:
raise HTTPRequestEntityTooLarge

request.post()

if 0 < max_size < size:
raise ValueError(
'Maximum request body size exceeded')

Seems inconsistent to me that the two methods behave differently. Request.post() should raise HTTPRequestEntityTooLarge too.

Or am I missing something?

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions