Closed gr3atest closed 2 years ago
Thanks for Creating PR. how about changing
if 'text/html' in req.headers.get('content-type'):
to
if 'text/html' in req.headers.get('content-type', 'None'):
Great suggestion, updated code to reflect your suggestion :)
Merged. Thanks
content-type
header is not always returned. Check before attempting to access the header