mirror of
https://github.com/Kozea/Radicale.git
synced 2025-07-05 17:08:29 +00:00
Merge pull request #175 from Ede123/master
Return "401 unauthorized" on unauthorized DELETE requests (fixes #125)
This commit is contained in:
commit
f92f9f5e7d
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue