Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Merge remote-tracking branch 'cloudant/64299-add-new-request-parameter'
Close #156
  • Loading branch information
nickva committed Mar 8, 2017
2 parents 90bd048 + a1470e3 commit 60f6f6a8be1d8334241f40a34516e5c9ba30a9f4
Showing 2 changed files with 3 additions and 3 deletions.
@@ -629,8 +629,8 @@ body(#httpd{mochi_req=MochiReq, req_body=ReqBody}) ->
case ReqBody of
undefined ->
% Maximum size of document PUT request body (4GB)
MaxSize = list_to_integer(
config:get("couchdb", "max_document_size", "4294967296")),
MaxSize = config:get_integer("httpd", "max_http_request_size",
4294967296),
Begin = os:timestamp(),
try
MochiReq:recv_body(MaxSize)
@@ -93,7 +93,7 @@ json_req_obj_field(<<"headers">>, #httpd{mochi_req=Req}, _Db, _DocId) ->
Hlist = mochiweb_headers:to_list(Headers),
to_json_terms(Hlist);
json_req_obj_field(<<"body">>, #httpd{req_body=undefined, mochi_req=Req}, _Db, _DocId) ->
MaxSize = config:get_integer("couchdb", "max_document_size", 4294967296),
MaxSize = config:get_integer("httpd", "max_http_request_size", 4294967296),
try
Req:recv_body(MaxSize)
catch exit:normal ->

0 comments on commit 60f6f6a

Please sign in to comment.