Minor change the the parse_headers function