You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2008/04/15 03:27:56 UTC

svn commit: r648088 - /incubator/couchdb/branches/mochiweb/src/couchdb/couch_httpd.erl

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)