Strip additional header data added by proxied requests

The proxy adds this data, making it unavailable to the $curl_info array and thus mangling the returned request body. This code will strip any modified header data so that the request body is parsed correctly.