Merge pull request #175 from Ede123/master

Return "401 unauthorized" on unauthorized DELETE requests (fixes #125)
This commit is contained in:
Guillaume Ayoub 2014-07-28 11:20:45 +02:00
commit f92f9f5e7d

View File

@ -340,7 +340,7 @@ class Application(object):
user):
"""Manage DELETE request."""
if not len(write_collections):
return client.PRECONDITION_FAILED, {}, None
return return NOT_ALLOWED
collection = write_collections[0]