From e9e811d37563b6a9fc50d3ce5b3471251c343963 Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Wed, 1 May 2013 20:36:41 +0200 Subject: [PATCH] Allow requests with no maching items (ie. requests at "/") --- radicale/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radicale/__init__.py b/radicale/__init__.py index c521c3a..6d6b7c0 100644 --- a/radicale/__init__.py +++ b/radicale/__init__.py @@ -293,8 +293,8 @@ class Application(object): self.collect_allowed_items(items, user) if read_allowed_items or write_allowed_items or \ - function == self.options: - # Collections found, or OPTIONS request (always allowed) + function == self.options or not items: + # Collections found, or OPTIONS request, or no items at all status, headers, answer = function( environ, read_allowed_items, write_allowed_items, content, user)