##// END OF EJS Templates
svn: extend detection of SVN to PROPFIND/PROPATCH methods....
marcink -
r2405:2f080035 default
parent child Browse files
Show More
@@ -76,12 +76,15 b' def is_svn(environ):'
76 76 """
77 77 Returns True if requests target is Subversion server
78 78 """
79
79 80 http_dav = environ.get('HTTP_DAV', '')
80 81 magic_path_segment = rhodecode.CONFIG.get(
81 82 'rhodecode_subversion_magic_path', '/!svn')
82 83 is_svn_path = (
83 84 'subversion' in http_dav or
84 magic_path_segment in environ['PATH_INFO'])
85 magic_path_segment in environ['PATH_INFO']
86 or environ['REQUEST_METHOD'] in ['PROPFIND', 'PROPPATCH']
87 )
85 88 log.debug(
86 89 'request path: `%s` detected as SVN PROTOCOL %s', environ['PATH_INFO'],
87 90 is_svn_path)
General Comments 0
You need to be logged in to leave comments. Login now