updated code to look for http and non-http based headers