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

app.request_context_hooks   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 6
dl 0
loc 7
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A after_request() 0 6 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