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