mirror of
https://github.com/kennethreitz/flask-common.git
synced 2026-06-05 23:00:19 +00:00
s/DISALBED/DISABLED
This commit is contained in:
+2
-2
@@ -119,9 +119,9 @@ class Common(object):
|
||||
|
||||
@app.after_request
|
||||
def after_request_callback(response):
|
||||
if not 'COMMON_POWERED_BY_DISALBED' in current_app.config:
|
||||
if not 'COMMON_POWERED_BY_DISABLED' in current_app.config:
|
||||
response.headers['X-Powered-By'] = 'Flask'
|
||||
if not 'COMMON_PROCESSED_TIME_DISALBED' in current_app.config:
|
||||
if not 'COMMON_PROCESSED_TIME_DISABLED' in current_app.config:
|
||||
response.headers['X-Processed-Time'] = maya.now().epoch - request.start_time.epoch
|
||||
return response
|
||||
|
||||
|
||||
Reference in New Issue
Block a user