summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam Kocoloski <kocolosk@apache.org>2009-08-14 21:27:48 +0000
committerAdam Kocoloski <kocolosk@apache.org>2009-08-14 21:27:48 +0000
commit3180e5aa8541d7969c95296607989c88056b598e (patch)
tree572cb518f4da6d7f95320ff1b4ff1281104702a8 /src
parent786bad421dc20bdcf9f7e0a7b5590f65d0c90451 (diff)
update allowed methods to reflect reality
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@804379 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/couchdb/couch_httpd_auth.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_httpd_auth.erl b/src/couchdb/couch_httpd_auth.erl
index 29a50eb5..f2974836 100644
--- a/src/couchdb/couch_httpd_auth.erl
+++ b/src/couchdb/couch_httpd_auth.erl
@@ -475,7 +475,7 @@ handle_user_req(#httpd{method='PUT', path_parts=[_, UserName]}=Req) ->
{ok, Db} -> update_user_req(Req, Db, UserName)
end;
handle_user_req(Req) ->
- send_method_not_allowed(Req, "GET,HEAD,POST,PUT,DELETE").
+ send_method_not_allowed(Req, "POST,PUT").
to_int(Value) when is_binary(Value) ->
to_int(?b2l(Value));