request-wrapper: ensure we wrap WHOLE request not just logic after http detection.
marcink -
r4157:3d2cea78 default
Not Reviewed
Show More
Add another comment
TODOs: 0 unresolved 0 Resolved
COMMENTS: 0 General 0 Inline
@@ -428,9 +428,7
428 settings['beaker.session.url'] = 'redis://' + raw_url
428 settings['beaker.session.url'] = 'redis://' + raw_url
429
429
430 # Default includes, possible to change as a user
430 # Default includes, possible to change as a user
431 pyramid_includes = settings.setdefault('pyramid.includes', [
431 pyramid_includes = settings.setdefault('pyramid.includes', [])
432 'rhodecode.lib.middleware.request_wrapper',
433 ])
434 log.debug(
432 log.debug(
435 "Using the following pyramid.includes: %s",
433 "Using the following pyramid.includes: %s",
436 pyramid_includes)
434 pyramid_includes)
@@ -38,6 +38,7
38
38
39 def __call__(self, request):
39 def __call__(self, request):
40 start = time.time()
40 start = time.time()
41 log.debug('Starting request time measurement')
41 try:
42 try:
42 response = self.handler(request)
43 response = self.handler(request)
43 finally:
44 finally:
@@ -116,3 +116,6
116 'pyramid.events.ContextFound')
116 'pyramid.events.ContextFound')
117 config.add_tween('rhodecode.tweens.vcs_detection_tween_factory')
117 config.add_tween('rhodecode.tweens.vcs_detection_tween_factory')
118 config.add_tween('rhodecode.tweens.sanity_check_factory')
118 config.add_tween('rhodecode.tweens.sanity_check_factory')
119
120 # This needs to be the LAST item
121 config.add_tween('rhodecode.lib.middleware.request_wrapper.RequestWrapperTween')
Comments 0
You need to be logged in to leave comments. Login now