No need to put the before_request down there

This commit is contained in:
Athanasios Voutsadakis
2017-11-16 16:25:40 +00:00
parent fce8129f3e
commit f8b8cdece7

View File

@@ -158,13 +158,12 @@ def init_app(application):
application.after_request(useful_headers_after_request)
application.after_request(save_service_after_request)
application.before_request(load_service_before_request)
application.before_request(request_helper.check_proxy_header_before_request)
@application.context_processor
def _attach_current_service():
return {'current_service': current_service}
application.before_request(request_helper.check_proxy_header_before_request)
@application.before_request
def record_start_time():
g.start = monotonic()