def find_matching_headers(name, headers):
 return [h for h in headers if (h.lower() == name.lower())]

def find_matching_headers ( name , headers ) : return [ h for h in headers if ( h . lower ( ) == name . lower ( ) ) ]
takes a specific header name and a dict of headers {"name": "value"} .