Passed
Push — master ( 11a02e...b3bafd )
by Mingyu
01:15
created

app.request_context_hooks.after_request()   A

Complexity

Conditions 1

Size

Total Lines 6
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nop 1
1
def after_request(response):
2
    try:
3
        response.headers['X-Content-Type-Options'] = 'nosniff'
4
        response.headers['X-Frame-Options'] = 'deny'
5
    finally:
6
        return response
7