Zend Framework

Zend_Http_Client_Adapter_Socket doesn't understand Transfer-encoding "Chunked"

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.7.2
  • Fix Version/s: 1.9.0
  • Component/s: Zend_Http_Client
  • Labels:
    None

Description

According to standard HTTP/1.1 all transfer-coding values are case insensitive (http://www.w3.org/Protocols/HTTP/1.1/rfc2616bis/draft-lafon-rfc2616bis-03.html#transfer.codings). 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.

Activity

Hide
Alexey Simonenko added a comment -

Patch resolves this issue for ZF 1.8.1

Show
Alexey Simonenko added a comment - Patch resolves this issue for ZF 1.8.1
Hide
Shahar Evron added a comment -

Thanks for the report and for the patch!

Patch applied + unit tests added in CS-17021

Show
Shahar Evron added a comment - Thanks for the report and for the patch! Patch applied + unit tests added in CS-17021

People

Vote (1)
Watch (3)

Dates

  • Created:
    Updated:
    Resolved: