Issues

ZF-9834: Zend_Http_Response does not extract some headers correctly

Issue Type: Bug Created: 2010-05-13T06:49:55.000+0000 Last Updated: 2010-07-13T09:08:55.000+0000 Status: Resolved Fix version(s): - 1.10.6 (22/Jun/10)

  • 1.10.7 (28/Jul/10)

Reporter: Alexander Steshenko (lcf) Assignee: Shahar Evron (shahar) Tags: - Zend_Http_Response

Related issues: - ZF-5520

Attachments:

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

<pre class="highlight">
            if (preg_match("|^([\w-]+):\s+(.+)|", $line, $m)) 

to

<pre class="highlight">
            if (preg_match("|^([\w-]+):\s*(.+)|", $line, $m)) 

Comments

Posted by Shahar Evron (shahar) on 2010-07-13T09:08:55.000+0000

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

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts