Zend Framework

Zend_Http_Response does not extract some headers correctly

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.10.4
  • Fix Version/s: 1.10.6, 1.10.7
  • Component/s: Zend_Http_Response
  • Labels:
    None

Description

Zend_Http_Response::extractHeaders does not recognize headers like "Location:http://example.com" i.e. without a space after the ":".

To fix it, please change line 510, Zend/Http/Response.php from

if (preg_match("|^([\w-]+):\s+(.+)|", $line, $m))

to

if (preg_match("|^([\w-]+):\s*(.+)|", $line, $m))

Issue Links

Activity

Hide
Shahar Evron added a comment -

Originally fixed by wilmoore, merged to 1.10 release branch in r22555.

Show
Shahar Evron added a comment - Originally fixed by wilmoore, merged to 1.10 release branch in r22555.

People

Vote (1)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: