You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.
In Zend\Http\Client\Adapter\Curl there is a line where the 'Transfer-Encoding: chunked' is removed so it will not be interpreted from the Zend\Http\Response decodeChunkedBody function, because curl already decodes the chunked body.
As you can see there are two whitespaces between 'Transfer-Encoding:' and 'chunked' causing the stripos($this->response, "Transfer-Encoding: chunked\r\n") to become false.
As a result the decodeChunkedBody function gets called and throws an exception.
The text was updated successfully, but these errors were encountered:
I saw this issue on some major webpages.
In Zend\Http\Client\Adapter\Curl there is a line where the 'Transfer-Encoding: chunked' is removed so it will not be interpreted from the Zend\Http\Response decodeChunkedBody function, because curl already decodes the chunked body.
Here is the example header from buzzfeed.com:
As you can see there are two whitespaces between 'Transfer-Encoding:' and 'chunked' causing the
stripos($this->response, "Transfer-Encoding: chunked\r\n")
to become false.As a result the decodeChunkedBody function gets called and throws an exception.
The text was updated successfully, but these errors were encountered: