Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Add MaxUploadBytes parameter #478

@benaadams

Description

@benaadams

Fail fast on Content-Length header value, count for body in chunked when limit passed.

Failure state: current 413 Payload Too Large old 413 Request Entity Too Large

"The request is larger than the server is willing or able to process." RFC7231

.NET 4 - 4.6 default HttpRuntimeSection.MaxRequestLength 4MB
IIS default maxRequestEntityAllowed 200kB
or filtered default 28.6MB (returns 404.13 Content Length Too Large)
ngnix default client_max_body_size 1MB
apache.tomcat default maxPostSize 2MB
apache.httpd default LimitRequestBody unlimited

Will currently be enforced by reverse proxy config (e.g. IIS/nginx) when deployed in recommended configuration - but not in pure Kestrel deployment.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions