Show More
@@ -20,6 +20,8 b'' | |||
|
20 | 20 | |
|
21 | 21 | |
|
22 | 22 | import logging |
|
23 | ||
|
24 | import pyramid.tweens | |
|
23 | 25 | from pyramid.httpexceptions import HTTPException, HTTPBadRequest |
|
24 | 26 | |
|
25 | 27 | from rhodecode.lib.middleware.vcs import ( |
@@ -37,6 +39,7 b' def vcs_detection_tween_factory(handler,' | |||
|
37 | 39 | this information |
|
38 | 40 | """ |
|
39 | 41 | vcs_server_enabled = request.registry.settings.get('vcs.server.enable') |
|
42 | ||
|
40 | 43 | vcs_handler = vcs_server_enabled and detect_vcs_request( |
|
41 | 44 | request.environ, request.registry.settings.get('vcs.backends')) |
|
42 | 45 | |
@@ -120,5 +123,5 b' def includeme(config):' | |||
|
120 | 123 | config.add_tween('rhodecode.tweens.sanity_check_factory') |
|
121 | 124 | |
|
122 | 125 | # This needs to be the LAST item |
|
123 | config.add_tween('rhodecode.lib.middleware.request_wrapper.RequestWrapperTween') | |
|
126 | config.add_tween('rhodecode.lib.middleware.request_wrapper.RequestWrapperTween', under=pyramid.tweens.INGRESS) | |
|
124 | 127 | log.debug('configured all tweens') |
General Comments 0
You need to be logged in to leave comments.
Login now