Fix "root" where "scheme" was intended

This commit is contained in:
Vasco Franco
2021-11-14 00:15:29 +00:00
parent bd97d2c752
commit 9f37125c04

View File

@@ -29,7 +29,7 @@ def active_tests(url, root, scheme, header_dict, delay):
if acao_header is None: if acao_header is None:
return return
origin = root + '://' + 'example.com' origin = scheme + '://' + 'example.com'
headers = requester(url, scheme, header_dict, origin) headers = requester(url, scheme, header_dict, origin)
acao_header, acac_header = headers.get('access-control-allow-origin', None), headers.get('access-control-allow-credentials', None) acao_header, acac_header = headers.get('access-control-allow-origin', None), headers.get('access-control-allow-credentials', None)
if acao_header and acao_header == (origin): if acao_header and acao_header == (origin):