summaryrefslogtreecommitdiff
path: root/server/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php
diff options
context:
space:
mode:
authorEoleDev <EoleDev@outlook.fr>2016-03-23 15:30:47 +0100
committerEoleDev <EoleDev@outlook.fr>2016-03-23 15:30:47 +0100
commit54ec6723deb44e325782afd366eeec01ee29ac55 (patch)
tree5431400d307754a02e6c40b35a40e6761d7dac0c /server/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php
parent0dc17aa9efb987dcdf6f864f4110450bcc0c9003 (diff)
Maj Library
Diffstat (limited to 'server/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php')
-rw-r--r--server/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php b/server/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php
index c4b927e..7754e91 100644
--- a/server/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php
+++ b/server/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php
@@ -56,8 +56,13 @@ final class EasyHandle
if (!empty($this->options['decode_content'])
&& isset($normalizedKeys['content-encoding'])
) {
+ $headers['x-encoded-content-encoding']
+ = $headers[$normalizedKeys['content-encoding']];
unset($headers[$normalizedKeys['content-encoding']]);
if (isset($normalizedKeys['content-length'])) {
+ $headers['x-encoded-content-length']
+ = $headers[$normalizedKeys['content-length']];
+
$bodyLength = (int) $this->sink->getSize();
if ($bodyLength) {
$headers[$normalizedKeys['content-length']] = $bodyLength;