summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2008-11-09 22:39:26 +0000
committerJohn Christopher Anderson <jchris@apache.org>2008-11-09 22:39:26 +0000
commit538f455f2e2842d5caa33ed300d28b3cd52599b3 (patch)
tree4c467c3fafd2205dcc28da6a91aecf30e2f2415c /src
parent51f186c86a46fcbd7815b09367df8e22b9b1bbb2 (diff)
apply replication fixing patches from COUCHDB-157
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@712578 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/couchdb/couch_rep.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_rep.erl b/src/couchdb/couch_rep.erl
index 2eb59ddb..c91364c8 100644
--- a/src/couchdb/couch_rep.erl
+++ b/src/couchdb/couch_rep.erl
@@ -343,7 +343,7 @@ open_doc_revs(DbUrl, DocId, Revs, Options) when is_list(DbUrl) ->
"latest=true"
end, Options),
RevsQueryStrs = lists:flatten(?JSON_ENCODE(Revs)),
- Url = DbUrl ++ binary_to_list(DocId) ++ "?" ++ couch_util:implode(["revs=true", "attachments=true", "open_revs=" ++ RevsQueryStrs ] ++ QueryOptionStrs, "&"),
+ Url = DbUrl ++ url_encode(DocId) ++ "?" ++ couch_util:implode(["revs=true", "attachments=true", "open_revs=" ++ RevsQueryStrs ] ++ QueryOptionStrs, "&"),
JsonResults = do_http_request(Url, get, []),
Results =
lists:map(