summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Newson <rnewson@apache.org>2010-08-22 13:15:30 +0000
committerRobert Newson <rnewson@apache.org>2010-08-22 13:15:30 +0000
commit4e2c27d024d5d0353ebde7f0f72c3d22f733821d (patch)
tree0fb322b94d3bb5f599059a8ed055981ae2f6ce0d /src
parent49d115e263de1cdb2326e691a566d0d230110d21 (diff)
COUCHDB-864 - set SAVE_RECV flag in mochiweb request to allow connection keep-alive between multipart/related PUT's.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@987898 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/couchdb/couch_doc.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/couchdb/couch_doc.erl b/src/couchdb/couch_doc.erl
index 5009f8fc..f8c874b0 100644
--- a/src/couchdb/couch_doc.erl
+++ b/src/couchdb/couch_doc.erl
@@ -455,6 +455,7 @@ doc_from_multi_part_stream(ContentType, DataFun) ->
Parser ! {get_doc_bytes, self()},
receive
{doc_bytes, DocBytes} ->
+ erlang:put(mochiweb_request_recv, true),
Doc = from_json_obj(?JSON_DECODE(DocBytes)),
% go through the attachments looking for 'follows' in the data,
% replace with function that reads the data from MIME stream.