Skip to content
Snippets Groups Projects
Commit 3cca5259 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

properly decoding gzipped responses

parent 40a707c7
No related branches found
No related tags found
No related merge requests found
......@@ -208,6 +208,11 @@ class RequestFetcher extends Command
}
}
// Unzip if content-encoding is gzip
if(strtolower($headers_arr["content-encoding"]) === "gzip"){
$body = gzdecode($body);
}
$sanitizedHeaders = array();
foreach ($headers_arr as $key => $value) {
if (stripos($key, "content-encoding") === false &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment