[wp-trac] [WordPress Trac] #10624: Redirection should be disabled for HEAD requests

WordPress Trac wp-trac at lists.automattic.com
Fri Dec 25 05:30:28 UTC 2009


#10624: Redirection should be disabled for HEAD requests
--------------------------+-------------------------------------------------
 Reporter:  dd32          |       Owner:  dd32     
     Type:  defect (bug)  |      Status:  accepted 
 Priority:  normal        |   Milestone:  3.0      
Component:  HTTP          |     Version:  2.9      
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------
Changes (by dd32):

  * keywords:  needs-patch => has-patch
  * milestone:  Future Release => 3.0


Comment:

 > attachment 10624.2.diff  added
  * Disables redirects on HEAD requests.
  * Slight bug fix, Turns out that the Streams transport is not returning
 error-conditional pages, Adding {{{'ignore_errors' => true}}} fixed that.
 (Note: a 302 was classified as a error if it was set to not redirect).
 Result was that it was throwing the error "Could not open handle"
  * Disabled HEAD requests on one of the transports that cant handle
 HEAD's. See #11613 for a bug related to that, If a Request is made before
 it using GET, the result of the test for HEAD will fail as the GET request
 was cached.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10624#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list