mirror of
https://github.com/Kozea/Radicale.git
synced 2025-09-12 20:30:57 +00:00
Add an option allowing requests without base_prefix
Related to #147, patch proposed by jheidemann
This commit is contained in:
parent
0822f99650
commit
9ad9c466e2
3 changed files with 6 additions and 0 deletions
|
@ -252,6 +252,9 @@ class Application(object):
|
|||
environ["PATH_INFO"] = self.sanitize_uri(
|
||||
"/%s" % environ["PATH_INFO"][len(base_prefix):])
|
||||
log.LOGGER.debug("Sanitized path: %s", environ["PATH_INFO"])
|
||||
elif config.get("server", "can_skip_base_prefix"):
|
||||
log.LOGGER.debug(
|
||||
"Skipped already sanitized path: %s", environ["PATH_INFO"])
|
||||
else:
|
||||
# Request path not starting with base_prefix, not allowed
|
||||
log.LOGGER.debug(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue