couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dam...@apache.org
Subject svn commit: r648088 - /incubator/couchdb/branches/mochiweb/src/couchdb/couch_httpd.erl
Date Tue, 15 Apr 2008 01:27:56 GMT
Author: damien
Date: Mon Apr 14 18:27:31 2008
New Revision: 648088

URL: http://svn.apache.org/viewvc?rev=648088&view=rev
Log:
mochiweb work. fix last crashes. All tests pass, everything looks good.

Modified:
    incubator/couchdb/branches/mochiweb/src/couchdb/couch_httpd.erl

Modified: incubator/couchdb/branches/mochiweb/src/couchdb/couch_httpd.erl
URL: http://svn.apache.org/viewvc/incubator/couchdb/branches/mochiweb/src/couchdb/couch_httpd.erl?rev=648088&r1=648087&r2=648088&view=diff
==============================================================================
--- incubator/couchdb/branches/mochiweb/src/couchdb/couch_httpd.erl (original)
+++ incubator/couchdb/branches/mochiweb/src/couchdb/couch_httpd.erl Mon Apr 14 18:27:31 2008
@@ -521,11 +521,13 @@
             ], chunked}),
             couch_doc:bin_foldl(Bin,
                 fun(BinSegment, []) ->
-                    Resp:write_chunk(BinSegment)
+                    ok = Resp:write_chunk(BinSegment),
+                    {ok, []}
                 end,
                 []
             ),
-            Resp:write_chunk("")
+            Resp:write_chunk(""),
+            {ok, Resp}
         end;
     Error ->
         throw(Error)



Mime
View raw message