couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject svn commit: r987898 - /couchdb/trunk/src/couchdb/couch_doc.erl
Date Sun, 22 Aug 2010 13:15:30 GMT
Author: rnewson
Date: Sun Aug 22 13:15:30 2010
New Revision: 987898

URL: http://svn.apache.org/viewvc?rev=987898&view=rev
Log:
COUCHDB-864 - set SAVE_RECV flag in mochiweb request to allow connection keep-alive between
multipart/related PUT's.

Modified:
    couchdb/trunk/src/couchdb/couch_doc.erl

Modified: couchdb/trunk/src/couchdb/couch_doc.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_doc.erl?rev=987898&r1=987897&r2=987898&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_doc.erl (original)
+++ couchdb/trunk/src/couchdb/couch_doc.erl Sun Aug 22 13:15:30 2010
@@ -455,6 +455,7 @@ doc_from_multi_part_stream(ContentType, 
     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.



Mime
View raw message