couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kocol...@apache.org
Subject svn commit: r807345 - /couchdb/trunk/src/couchdb/couch_rep_changes_feed.erl
Date Mon, 24 Aug 2009 19:32:51 GMT
Author: kocolosk
Date: Mon Aug 24 19:32:51 2009
New Revision: 807345

URL: http://svn.apache.org/viewvc?rev=807345&view=rev
Log:
also follow 302 for _changes feed

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

Modified: couchdb/trunk/src/couchdb/couch_rep_changes_feed.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_rep_changes_feed.erl?rev=807345&r1=807344&r2=807345&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_rep_changes_feed.erl (original)
+++ couchdb/trunk/src/couchdb/couch_rep_changes_feed.erl Mon Aug 24 19:32:51 2009
@@ -67,7 +67,7 @@
     {ibrowse_async_headers, ReqId, "200", _} ->
         ibrowse:stream_next(ReqId),
         {ok, #state{conn=Pid, last_seq=Since, reqid=ReqId}};
-    {ibrowse_async_headers, ReqId, "301", Hdrs} ->
+    {ibrowse_async_headers, ReqId, Code, Hdrs} when Code=="301"; Code=="302" ->
         catch ibrowse:stop_worker_process(Pid),
         Url2 = mochiweb_headers:get_value("Location", mochiweb_headers:make(Hdrs)),
         %% TODO use couch_httpc:request instead of start_http_request



Mime
View raw message