couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r990592 - /couchdb/branches/new_replicator/src/couchdb/couch_api_wrap.erl
Date Sun, 29 Aug 2010 15:06:07 GMT
Author: fdmanana
Date: Sun Aug 29 15:06:07 2010
New Revision: 990592

URL: http://svn.apache.org/viewvc?rev=990592&view=rev
Log:
New replicator: add missing Content-Type header when POSTing to /db/_ensure_full_commit (for
CouchDB server versions > 0.11.0)

Modified:
    couchdb/branches/new_replicator/src/couchdb/couch_api_wrap.erl

Modified: couchdb/branches/new_replicator/src/couchdb/couch_api_wrap.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/new_replicator/src/couchdb/couch_api_wrap.erl?rev=990592&r1=990591&r2=990592&view=diff
==============================================================================
--- couchdb/branches/new_replicator/src/couchdb/couch_api_wrap.erl (original)
+++ couchdb/branches/new_replicator/src/couchdb/couch_api_wrap.erl Sun Aug 29 15:06:07 2010
@@ -128,7 +128,8 @@ update_doc(Db, Doc, Options) ->
 ensure_full_commit(#httpdb{} = Db) ->
     send_req(
         Db,
-        [{method, post}, {path, "_ensure_full_commit"}, {direct, true}],
+        [{method, post}, {path, "_ensure_full_commit"}, {direct, true},
+            {headers, [{"Content-Type", "application/json"}]}],
         fun(201, _, {Props}) ->
             {ok, get_value(<<"instance_start_time">>, Props)}
         end);



Mime
View raw message