You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2009/04/18 19:12:38 UTC
svn commit: r766358 -
/couchdb/trunk/src/couchdb/couch_httpd_misc_handlers.erl
Author: davisp
Date: Sat Apr 18 17:12:38 2009
New Revision: 766358
URL: http://svn.apache.org/viewvc?rev=766358&view=rev
Log:
Fixes COUCHDB-310
Change the hardcoded "/_utils/" redirect to append a '/' to the current path.
Modified:
couchdb/trunk/src/couchdb/couch_httpd_misc_handlers.erl
Modified: couchdb/trunk/src/couchdb/couch_httpd_misc_handlers.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_httpd_misc_handlers.erl?rev=766358&r1=766357&r2=766358&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_httpd_misc_handlers.erl (original)
+++ couchdb/trunk/src/couchdb/couch_httpd_misc_handlers.erl Sat Apr 18 17:12:38 2009
@@ -50,7 +50,8 @@
couch_httpd:serve_file(Req, RelativePath, DocumentRoot);
{_ActionKey, "", _RelativePath} ->
% GET /_utils
- couch_httpd:send_redirect(Req, "/_utils/")
+ RedirectPath = couch_httpd:path(Req) ++ "/",
+ couch_httpd:send_redirect(Req, RedirectPath)
end;
handle_utils_dir_req(Req, _) ->
send_method_not_allowed(Req, "GET,HEAD").