From bbdce1780b71840abe3197422d697048e708146b Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Tue, 27 Jul 2010 23:08:03 +0000 Subject: replicator was getting stuck on push replication to design docs by non-admins. this fix is a bit hackish but makes replication work. once the new_replicator is in place this hackish fix will not matter, so for now it is a good solution. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@979908 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_rep_httpc.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/couchdb') diff --git a/src/couchdb/couch_rep_httpc.erl b/src/couchdb/couch_rep_httpc.erl index 768d88a3..b5113f64 100644 --- a/src/couchdb/couch_rep_httpc.erl +++ b/src/couchdb/couch_rep_httpc.erl @@ -140,7 +140,7 @@ process_response({ok, Status, Headers, Body}, Req) -> do_request(redirected_request(Req, RedirectUrl)); Code =:= 409 -> throw(conflict); - Code >= 400, Code < 500 -> + Code >= 400, Code =< 500 -> ?JSON_DECODE(maybe_decompress(Headers, Body)); Code =:= 500; Code =:= 502; Code =:= 503 -> #http_db{pause = Pause, retries = Retries} = Req, -- cgit v1.2.3