summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoan Touzet <joant@atypical.net>2020-01-29 12:03:06 -0500
committerJoan Touzet <wohali@users.noreply.github.com>2020-02-01 04:21:34 +0000
commit3bbd08385d240de383a61dc7dd81621896def465 (patch)
tree4ca35efb85efb436a9d7297de93f41946943090a
parent96e90c44eb9bf70a3d05fbb6e9f637ca88a2745a (diff)
downloadcouchdb-3bbd08385d240de383a61dc7dd81621896def465.tar.gz
Fix node-specific shard access via HTTP
-rw-r--r--src/chttpd/src/chttpd_node.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chttpd/src/chttpd_node.erl b/src/chttpd/src/chttpd_node.erl
index acd5affbd..499eb16ff 100644
--- a/src/chttpd/src/chttpd_node.erl
+++ b/src/chttpd/src/chttpd_node.erl
@@ -132,7 +132,7 @@ handle_node_req(#httpd{path_parts=[_, Node | PathParts],
% strip /_node/{node} from Req0 before descending further
RawUri = MochiReq0:get(raw_path),
{_, Query, Fragment} = mochiweb_util:urlsplit_path(RawUri),
- NewPath0 = "/" ++ lists:join("/", [?b2l(P) || P <- PathParts]),
+ NewPath0 = "/" ++ lists:join("/", [couch_util:url_encode(P) || P <- PathParts]),
NewRawPath = mochiweb_util:urlunsplit_path({NewPath0, Query, Fragment}),
MaxSize = config:get_integer("httpd", "max_http_request_size", 4294967296),
NewOpts = [{body, MochiReq0:recv_body(MaxSize)} | MochiReq0:get(opts)],