couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject svn commit: r766358 - /couchdb/trunk/src/couchdb/couch_httpd_misc_handlers.erl
Date Sat, 18 Apr 2009 17:12:38 GMT
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").



Mime
View raw message