1
0
Fork 0

Add comment, fixes #4145

pull/4359/head^2
Jordi Boggiano 2015-08-17 15:57:00 +01:00
parent abfe54f334
commit 9859859f10
1 changed files with 2 additions and 0 deletions

View File

@ -227,6 +227,8 @@ class RemoteFilesystem
if (preg_match('{^content-encoding: *gzip *$}i', $header)) { if (preg_match('{^content-encoding: *gzip *$}i', $header)) {
$decode = true; $decode = true;
} elseif (preg_match('{^HTTP/}i', $header)) { } elseif (preg_match('{^HTTP/}i', $header)) {
// In case of redirects, http_response_headers contains the headers of all responses
// so we reset the flag when a new response is being parsed as we are only interested in the last response
$decode = false; $decode = false;
} }
} }