couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kocol...@apache.org
Subject svn commit: r807342 - /couchdb/trunk/src/couchdb/couch_rep_httpc.erl
Date Mon, 24 Aug 2009 19:28:36 GMT
Author: kocolosk
Date: Mon Aug 24 19:28:36 2009
New Revision: 807342

URL: http://svn.apache.org/viewvc?rev=807342&view=rev
Log:
follow 302s in replication

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

Modified: couchdb/trunk/src/couchdb/couch_rep_httpc.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_rep_httpc.erl?rev=807342&r1=807341&r2=807342&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_rep_httpc.erl (original)
+++ couchdb/trunk/src/couchdb/couch_rep_httpc.erl Mon Aug 24 19:28:36 2009
@@ -92,7 +92,7 @@
     Code = list_to_integer(Status),
     if Code =:= 200; Code =:= 201 ->
         ?JSON_DECODE(maybe_decompress(Headers, Body));
-    Code =:= 301 ->
+    Code =:= 301; Code =:= 302 ->
         MochiHeaders = mochiweb_headers:make(Headers),
         RedirectUrl = mochiweb_headers:get_value("Location", MochiHeaders),
         do_request(Req#http_db{url = RedirectUrl});



Mime
View raw message