couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jch...@apache.org
Subject svn commit: r744193 - /couchdb/trunk/src/couchdb/couch_rep.erl
Date Fri, 13 Feb 2009 17:58:03 GMT
Author: jchris
Date: Fri Feb 13 17:58:03 2009
New Revision: 744193

URL: http://svn.apache.org/viewvc?rev=744193&view=rev
Log:
fix COUCHDB-253. Replicator should not use chunked transfer-encoding on GET requests. thanks
Adam Kocoloski

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

Modified: couchdb/trunk/src/couchdb/couch_rep.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_rep.erl?rev=744193&r1=744192&r2=744193&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_rep.erl (original)
+++ couchdb/trunk/src/couchdb/couch_rep.erl Fri Feb 13 17:58:03 2009
@@ -182,10 +182,12 @@
     _ ->
         iolist_to_binary(?JSON_ENCODE(JsonBody))
     end,
-    Options = [
+    Options = case Action of
+        get -> [];
+        _ -> [{transfer_encoding, {chunked, 65535}}]
+    end ++ [
         {content_type, "application/json; charset=utf-8"},
-        {max_pipeline_size, 101},
-        {transfer_encoding, {chunked, 65535}}
+        {max_pipeline_size, 101}
     ],
     case ibrowse:send_req(Url, Headers, Action, Body, Options) of
     {ok, Status, ResponseHeaders, ResponseBody} ->



Mime
View raw message