diff options
author | Adam Kocoloski <kocolosk@apache.org> | 2009-04-15 21:21:23 +0000 |
---|---|---|
committer | Adam Kocoloski <kocolosk@apache.org> | 2009-04-15 21:21:23 +0000 |
commit | 21fc2ebcbf49cdbc8a81442e50072f5c88e80965 (patch) | |
tree | 6b29f73e0b0b623c5f5b090ede25a9c08eefd910 /src | |
parent | d4ce197924d255c59d694ba6b2cec23b7c2d05c0 (diff) |
URL-encode attachment paths during replication
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@765364 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/couchdb/couch_rep.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_rep.erl b/src/couchdb/couch_rep.erl index afb947e7..9d100d1f 100644 --- a/src/couchdb/couch_rep.erl +++ b/src/couchdb/couch_rep.erl @@ -372,7 +372,7 @@ attachment_loop(ReqId) -> attachment_stub_converter(DbS, Id, {Name, {stub, Type, Length}}) -> #http_db{uri=DbUrl, headers=Headers} = DbS, % TODO worry about revisions - Url = DbUrl ++ url_encode(Id) ++ "/" ++ ?b2l(Name), + Url = DbUrl ++ url_encode(Id) ++ "/" ++ url_encode(?b2l(Name)), ?LOG_DEBUG("Attachment URL ~p", [Url]), {ok, RcvFun} = make_attachment_stub_receiver(Url, Headers, Name, Type, Length), |