diff --git a/files/__main__.py b/files/__main__.py index 9ee146a18..1e3700357 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -107,7 +107,7 @@ def after_request(response): print('first: ' + request.access_route[0]) print('second: ' + request.remote_addr) - print('third: ' + request.headers['True-Client-IP']) + print('third: ' + request.headers.get('True-Client-IP')) response.headers.add("Strict-Transport-Security", "max-age=31536000") response.headers.add("X-Frame-Options", "deny")