Useless typo
This commit is contained in:
parent
bf8e874e4d
commit
f73b44a311
@ -270,8 +270,7 @@ class Application(object):
|
|||||||
path = environ["PATH_INFO"]
|
path = environ["PATH_INFO"]
|
||||||
|
|
||||||
# Find collection(s)
|
# Find collection(s)
|
||||||
items = ical.Collection.from_path(
|
items = ical.Collection.from_path(path, environ.get("HTTP_DEPTH", "0"))
|
||||||
path, environ.get("HTTP_DEPTH", "0"))
|
|
||||||
|
|
||||||
# Get function corresponding to method
|
# Get function corresponding to method
|
||||||
function = getattr(self, environ["REQUEST_METHOD"].lower())
|
function = getattr(self, environ["REQUEST_METHOD"].lower())
|
||||||
@ -295,7 +294,7 @@ class Application(object):
|
|||||||
|
|
||||||
if read_allowed_items or write_allowed_items or \
|
if read_allowed_items or write_allowed_items or \
|
||||||
function == self.options:
|
function == self.options:
|
||||||
# Collections found
|
# Collections found, or OPTIONS request (always allowed)
|
||||||
status, headers, answer = function(
|
status, headers, answer = function(
|
||||||
environ, read_allowed_items, write_allowed_items, content,
|
environ, read_allowed_items, write_allowed_items, content,
|
||||||
user)
|
user)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user