ZF-5438: Zend_Http_Client_Adapter_Socket doesn't understand Transfer-encoding "Chunked"

Description

According to standard HTTP/1.1 all transfer-coding values are case insensitive (http://w3.org/Protocols/HTTP/…). But Zend_Http_Client_Adapter_Socket doesn't understand "{{Chunked}}" with first uppercased letter.

In the class there is simple compare {{$headers['transfer-encoding'] == 'chunked'}} (in method {{read()}}) without any respect to case insensitivity.

Comments

Patch resolves this issue for ZF 1.8.1

Thanks for the report and for the patch!

Patch applied + unit tests added in CS-17021