
|
If you were logged in you would be able to see more operations.
|
Google issue summary
|
|
|
| Resolution Date: |
26/Jun/06 04:42 AM
|
At the incubator version of Zend_Http_Client,
Zend_Http_Response::extractCode method uses following regular expression code.
http://framework.zend.com/fisheye/browse/Zend_Framework/trunk/incubator/library/Zend/Http/Response.php?r=trunk#l360
preg_match("|^HTTP/[\d\.x]+ (\d+) |", $response_str, $m);
But some web servers return a status line without Reason-Phrase field.
ex) HTTP/1.1 301
see: wget -S http://www.amazon.co.jp/exec/obidos/ASIN/4334033547/ref=nosim/
To support these servers, it will be changed like this.
Zend_Http_Response::extractCode
- preg_match("|^HTTP/[\d\.x]+ (\d+) |", $response_str, $m);
+ preg_match("|^HTTP/[\d\.x]+ (\d+)|", $response_str, $m);
Zend_Http_Response::extractVersion
- preg_match("|^HTTP/([\d\.x]+) \d+ |", $response_str, $m);
+ preg_match("|^HTTP/([\d\.x]+) \d+|", $response_str, $m);
|
|
Description
|
At the incubator version of Zend_Http_Client,
Zend_Http_Response::extractCode method uses following regular expression code.
http://framework.zend.com/fisheye/browse/Zend_Framework/trunk/incubator/library/Zend/Http/Response.php?r=trunk#l360
preg_match("|^HTTP/ [\d\.x]+ (\d+) |", $response_str, $m);
But some web servers return a status line without Reason-Phrase field.
ex) HTTP/1.1 301
see: wget -S http://www.amazon.co.jp/exec/obidos/ASIN/4334033547/ref=nosim/
To support these servers, it will be changed like this.
Zend_Http_Response::extractCode
- preg_match("|^HTTP/[\d\.x]+ (\d+) |", $response_str, $m);
+ preg_match("|^HTTP/[\d\.x]+ (\d+)|", $response_str, $m);
Zend_Http_Response::extractVersion
- preg_match("|^HTTP/([\d\.x]+) \d+ |", $response_str, $m);
+ preg_match("|^HTTP/([\d\.x]+) \d+|", $response_str, $m);
|
Show » |
|
Please test again with revision 694
Thank you