couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iil...@apache.org
Subject [09/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372
Date Tue, 01 Mar 2016 20:00:42 GMT
Remove equivalent copy of body/1 from original


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/4d4b1a39
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/4d4b1a39
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/diff/4d4b1a39

Branch: refs/heads/split_out_httpd_stack
Commit: 4d4b1a399c4046013935daf652c33b0b645e21a3
Parents: 8c5a833
Author: ILYA Khlopotov <iilyak@ca.ibm.com>
Authored: Thu Feb 25 11:02:11 2016 -0800
Committer: ILYA Khlopotov <iilyak@ca.ibm.com>
Committed: Tue Mar 1 08:35:07 2016 -0800

----------------------------------------------------------------------
 src/couch_httpd_original.erl | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/blob/4d4b1a39/src/couch_httpd_original.erl
----------------------------------------------------------------------
diff --git a/src/couch_httpd_original.erl b/src/couch_httpd_original.erl
index 504d100..5bcde74 100644
--- a/src/couch_httpd_original.erl
+++ b/src/couch_httpd_original.erl
@@ -19,7 +19,6 @@
 -export([verify_is_server_admin/1,error_info/1]).
 -export([make_fun_spec_strs/1]).
 
--export([body/1]).
 -export([etag_match/2, etag_respond/3, etag_maybe/2]).
 
 -export([start_chunked_response/3,send_chunk/2,log_request/2]).
@@ -65,7 +64,8 @@
     send/2,
     send_method_not_allowed/2,
     send_redirect/2,
-    absolute_uri/2
+    absolute_uri/2,
+    body/1
 ]).
 
 -define(HANDLER_NAME_IN_MODULE_POS, 6).
@@ -474,13 +474,6 @@ host_for_request(#httpd{mochi_req=MochiReq}) ->
         Value -> Value
     end.
 
-body(#httpd{mochi_req=MochiReq, req_body=undefined}) ->
-    MaxSize = list_to_integer(
-        config:get("couchdb", "max_document_size", "4294967296")),
-    MochiReq:recv_body(MaxSize);
-body(#httpd{req_body=ReqBody}) ->
-    ReqBody.
-
 maybe_decompress(Httpd, Body) ->
     case header_value(Httpd, "Content-Encoding", "identity") of
     "gzip" ->


Mime
View raw message