summaryrefslogtreecommitdiff
path: root/src/chttpd.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/chttpd.erl')
-rw-r--r--src/chttpd.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chttpd.erl b/src/chttpd.erl
index ac5ee38c..42b4ab41 100644
--- a/src/chttpd.erl
+++ b/src/chttpd.erl
@@ -289,7 +289,7 @@ absolute_uri(#httpd{mochi_req=MochiReq} = Req, Path) ->
end
end,
CustomerRegex = ["^/", cloudant_util:customer_name(Req), "[/%2F]+"],
- NewPath = re:replace(Path, CustomerRegex, "/"),
+ NewPath = re:replace(Path, CustomerRegex, "/", [{return,list}]),
Scheme ++ "://" ++ Host ++ NewPath.
unquote(UrlEncodedString) ->