소스 검색

Fix OPTIONS requests

Guillaume Ayoub 13 년 전
부모
커밋
3ddbb80674
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      radicale/__init__.py

+ 1 - 1
radicale/__init__.py

@@ -236,7 +236,7 @@ class Application(object):
                         log.LOGGER.info("%s has NO access to item %s" % (
                             user, item.name or "/"))
 
-            if allowed_items:
+            if allowed_items or function == self.options:
                 # Collections found
                 status, headers, answer = function(
                     environ, allowed_items, content, user)