support rawHeaders and remove proxy headers