Tested app with 403 and 404 requests

This commit is contained in:
Sheng
2018-10-16 14:51:15 +08:00
parent e94c846379
commit af60cd1cd5
2 changed files with 46 additions and 2 deletions
+2 -2
View File
@@ -54,7 +54,7 @@ class MixinHandler(object):
lst = context.trusted_downstream
if lst and ip not in lst:
logging.info(
logging.warning(
'IP {!r} not found in trusted downstream {!r}'.format(ip, lst)
)
return True
@@ -62,7 +62,7 @@ class MixinHandler(object):
if context._orig_protocol == 'http':
ipaddr = to_ip_address(ip)
if not ipaddr.is_private:
logging.info('Public non-https request is forbidden.')
logging.warning('Public non-https request is forbidden.')
return True
def set_default_headers(self):