From a9c74ae84d7be95cb8f36c963a5e502e82a80ee4 Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Tue, 20 Mar 2012 13:30:54 +0100 Subject: [PATCH] Always allow OPTIONS requests (fixes #780) --- radicale/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radicale/__init__.py b/radicale/__init__.py index 691fc7d..e2c201d 100644 --- a/radicale/__init__.py +++ b/radicale/__init__.py @@ -197,8 +197,8 @@ class Application(object): function = getattr(self, environ["REQUEST_METHOD"].lower()) # Check rights - if not items or not self.acl: - # No collection or no acl, don't check rights + if not items or not self.acl or function == self.options: + # No collection, or no acl, or OPTIONS request: don't check rights status, headers, answer = function(environ, items, content, None) else: # Ask authentication backend to check rights