Passed
Push — master ( e23192...579b4a )
by Mingyu
01:15
created

app.hooks.request_context   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

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

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