Skip to content

Commit

Permalink
Merged revision 988234 from CouchDB branch 1.0.1:
Browse files Browse the repository at this point in the history
Replicator: fix authentication failure when replicating design documents that have attachments.
    Closes COUCHDB-868.

    Patch by Jason Smith, thanks.
  • Loading branch information
fdmanana committed Sep 14, 2010
1 parent 9304900 commit 2698c76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion couchdb-1.0.1/src/couchdb/couch_rep_att.erl
Expand Up @@ -106,7 +106,7 @@ validate_headers(_Req, 200, Headers) ->
MochiHeaders = mochiweb_headers:make(Headers),
{ok, mochiweb_headers:get_value("Content-Encoding", MochiHeaders)};
validate_headers(Req, Code, Headers) when Code > 299, Code < 400 ->
Url = mochiweb_headers:get_value("Location",mochiweb_headers:make(Headers)),
Url = couch_rep_httpc:redirect_url(Headers, Req#http_db.url),
NewReq = couch_rep_httpc:redirected_request(Req, Url),
{ibrowse_req_id, ReqId} = couch_rep_httpc:request(NewReq),
receive {ibrowse_async_headers, ReqId, NewCode, NewHeaders} ->
Expand Down
2 changes: 1 addition & 1 deletion couchdb-1.0.1/src/couchdb/couch_rep_httpc.erl
Expand Up @@ -15,7 +15,7 @@
-include("../ibrowse/ibrowse.hrl").

-export([db_exists/1, db_exists/2, full_url/1, request/1, redirected_request/2,
spawn_worker_process/1, spawn_link_worker_process/1]).
redirect_url/2, spawn_worker_process/1, spawn_link_worker_process/1]).
-export([ssl_options/1]).

request(#http_db{} = Req) ->
Expand Down

0 comments on commit 2698c76

Please sign in to comment.