From 4e2c27d024d5d0353ebde7f0f72c3d22f733821d Mon Sep 17 00:00:00 2001 From: Robert Newson Date: Sun, 22 Aug 2010 13:15:30 +0000 Subject: 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 --- src/couchdb/couch_doc.erl | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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. -- cgit v1.2.3