diff options
author | John Christopher Anderson <jchris@apache.org> | 2010-07-29 02:36:26 +0000 |
---|---|---|
committer | John Christopher Anderson <jchris@apache.org> | 2010-07-29 02:36:26 +0000 |
commit | 35809c88d6deea2b55f841e8e8a76e4900525bf0 (patch) | |
tree | 5a78d7d40de28fa582704ac54d074d87e5f9cb91 /src/couchdb | |
parent | 4a34358f9d15d0c92fac4c2a013841129bc76b0c (diff) |
Revert "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."
This reverts commit bbdce1780b71840abe3197422d697048e708146b.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@980294 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb')
-rw-r--r-- | src/couchdb/couch_rep_httpc.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_rep_httpc.erl b/src/couchdb/couch_rep_httpc.erl index b5113f64..768d88a3 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, |