Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.4.4

Bug #18 Bad check for Location header in redirects
Submitted: 2003-09-17 09:11 UTC Modified: 2003-10-06 11:59 UTC
From: vm at bulgaria dot com Assigned: zyprexia
Status: Closed Package: HTTP_Request
PHP Version: Irrelevant OS: Irrevelant
Roadmaps: (Not assigned)    
Subscription  


 [2003-09-17 09:11 UTC] vm at bulgaria dot com
Description: ------------ AND !empty($this->_response->_headers['Location'])) here you check for Location with capitalized first letter. Since you make all headers lower case when this header is sent lower case the above doesn't match.

Comments

 [2003-10-04 04:13 UTC] zyprexia
Response headers are stored as the orginal haeder aswell in lowercase form (only with suffix '_i'). The lowercase headername makes processing returned headers a lot easier. So, as the original header is returned, the equation !empty($this->_response->_headers['Location'])) can be made without any problems. To my option this bug can be either set closed or bogus. Or am I missing something?
 [2003-10-06 11:59 UTC] zyprexia
Implemented also support for some servers that are sending lowercased headers.