use get_raw_header() instead of casting