Code Repositories xandikos / c7aa99c
Allow trailing slashes for wellknown URLs. Jelmer Vernooń≥ 2 years ago
1 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
827827
828828 def __call__(self, environ, start_response):
829829 # See https://tools.ietf.org/html/rfc6764
830 if ((environ['SCRIPT_NAME'] + environ['PATH_INFO'])
831 in WELLKNOWN_DAV_PATHS):
830 path = posixpath.normpath(
831 environ['SCRIPT_NAME'] + environ['PATH_INFO'])
832 if path in WELLKNOWN_DAV_PATHS:
832833 start_response('302 Found', [
833834 ('Location', self._dav_root)])
834835 return []