diff options
author | John Christopher Anderson <jchris@apache.org> | 2009-02-08 20:29:51 +0000 |
---|---|---|
committer | John Christopher Anderson <jchris@apache.org> | 2009-02-08 20:29:51 +0000 |
commit | 58e040359fa8d175b9eecec49f58e3dd00c78d1e (patch) | |
tree | 7c218754dd33d91c570473fdb0355c8e43341072 /src/couchdb/couch_httpd_misc_handlers.erl | |
parent | 85471cdf0cf6ec23529b07ec4382948a5e76af3f (diff) |
extract method couch_httpd:send_redirect(Req, Path)
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@742158 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_httpd_misc_handlers.erl')
-rw-r--r-- | src/couchdb/couch_httpd_misc_handlers.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/couchdb/couch_httpd_misc_handlers.erl b/src/couchdb/couch_httpd_misc_handlers.erl index 2ba8ef64..71a0e9ae 100644 --- a/src/couchdb/couch_httpd_misc_handlers.erl +++ b/src/couchdb/couch_httpd_misc_handlers.erl @@ -50,8 +50,7 @@ handle_utils_dir_req(#httpd{method='GET'}=Req, DocumentRoot) -> couch_httpd:serve_file(Req, RelativePath, DocumentRoot); {_ActionKey, "", _RelativePath} -> % GET /_utils - Headers = [{"Location", couch_httpd:absolute_uri(Req, "/_utils/")}], - couch_httpd:send_response(Req, 301, Headers, <<>>) + couch_httpd:send_redirect(Req, "/_utils/") end; handle_utils_dir_req(Req, _) -> send_method_not_allowed(Req, "GET,HEAD"). |