diff options
author | Adam Kocoloski <adam@cloudant.com> | 2010-07-12 17:05:19 -0400 |
---|---|---|
committer | Adam Kocoloski <adam@cloudant.com> | 2010-08-12 11:18:49 -0400 |
commit | 288da4c5ad0f2d4c6d83240923a69810f462c0b5 (patch) | |
tree | 83d1cbbdcbb065d21a43250456548bee97567cc8 /src/chttpd.erl | |
parent | c459a41601da688ef54664d645c9280ca5aa7a69 (diff) |
update PUT /db/docid, but multipart is probably still broken
Diffstat (limited to 'src/chttpd.erl')
-rw-r--r-- | src/chttpd.erl | 2 |
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) -> |