Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

Add max_document_size checking for multipart PUT requests #143

Merged
merged 1 commit into from
Oct 6, 2016

Conversation

nickva
Copy link
Contributor

@nickva nickva commented Oct 4, 2016

Previously multipart/related PUT requests didn't check maximum request sizes.

This commit checks content-length and compares that with the maximum.

This means keeping the current "semantics" of max_document_size which actually
means "max request size". But this makes the check more efficient and can
be done earlier in request processing time.

PR depends on apache/couchdb-couch#201 make sure to
merge that one first if accepted.

Jira: COUCHDB-3174

Previously multipart/related PUT requests didn't check maximum request sizes.

This commit checks content-length and compares that with the maximum.

This means keeping the current "semantics" of max_document_size which actually
means "max request size". But this makes the check more efficient and can
be done earlier in request processing time.

PR depends on apache/couchdb-couch#201 make sure to
merge that one first if accepted.

Jira: COUCHDB-3174
@davisp
Copy link
Member

davisp commented Oct 6, 2016

+1

@asfgit asfgit merged commit 5d7170c into apache:master Oct 6, 2016
@nickva nickva deleted the couchdb-3174 branch October 6, 2016 21:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants