summaryrefslogtreecommitdiff
path: root/src/couchdb
diff options
context:
space:
mode:
authorBenoit Chesneau <benoitc@apache.org>2010-03-01 14:57:28 +0000
committerBenoit Chesneau <benoitc@apache.org>2010-03-01 14:57:28 +0000
commit14bc90f931430c7cc3bf2af3f09874445dac7d29 (patch)
treeec13ad9af31afa35c212bd5604bbed7da64b8384 /src/couchdb
parent7be616679cefe6850e9ba7ab0d46b5a9880e5fae (diff)
fix issue COUCHDB-678 applying patch from Filipe Manana.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@917553 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb')
-rw-r--r--src/couchdb/couch_httpd.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_httpd.erl b/src/couchdb/couch_httpd.erl
index ae7d6c02..b25242fd 100644
--- a/src/couchdb/couch_httpd.erl
+++ b/src/couchdb/couch_httpd.erl
@@ -137,7 +137,7 @@ stop() ->
redirect_to_vhost(MochiReq, DefaultFun,
UrlHandlers, DbUrlHandlers, DesignUrlHandlers, VhostTarget) ->
- Path = MochiReq:get(path),
+ Path = MochiReq:get(raw_path),
Target = VhostTarget ++ Path,
?LOG_DEBUG("Vhost Target: '~p'~n", [Target]),
% build a new mochiweb request