summaryrefslogtreecommitdiff
path: root/src/chttpd.erl
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2010-07-12 17:05:19 -0400
committerAdam Kocoloski <adam@cloudant.com>2010-08-12 11:18:49 -0400
commit288da4c5ad0f2d4c6d83240923a69810f462c0b5 (patch)
tree83d1cbbdcbb065d21a43250456548bee97567cc8 /src/chttpd.erl
parentc459a41601da688ef54664d645c9280ca5aa7a69 (diff)
update PUT /db/docid, but multipart is probably still broken
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) ->