git.samba.org
/
jelmer
/
calypso.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ddbf790
)
Use @check_rights in do_OPTIONS so that evolution works
author
Keith Packard
<keithp@keithp.com>
Tue, 31 Jul 2012 08:12:09 +0000
(
01:12
-0700)
committer
Keith Packard
<keithp@keithp.com>
Tue, 31 Jul 2012 08:12:09 +0000
(
01:12
-0700)
This is how evolution knows that a password is required; if we don't
check here, it won't ever send one (and it will fail forevermore...)
Signed-off-by: Keith Packard <keithp@keithp.com>
calypso/__init__.py
patch
|
blob
|
history
diff --git
a/calypso/__init__.py
b/calypso/__init__.py
index 7529c55791e8fe92a3291555591f925aafd8149a..6a68c62da9e29d27e1e5aace0b3eee9dc798a2d0 100644
(file)
--- a/
calypso/__init__.py
+++ b/
calypso/__init__.py
@@
-304,7
+304,8
@@
class CollectionHTTPHandler(server.BaseHTTPRequestHandler):
self.send_response(client.CREATED)
self.end_headers()
- def do_OPTIONS(self):
+ @check_rights
+ def do_OPTIONS(self, context):
"""Manage OPTIONS request."""
self.send_response(client.OK)
self.send_header(