[wp-trac] [WordPress Trac] #14348: If it's a HEAD request, stop after the head!

WordPress Trac wp-trac at lists.automattic.com
Sat Aug 11 05:14:07 UTC 2012


#14348: If it's a HEAD request, stop after the head!
---------------------------------------------+------------------
 Reporter:  mitchoyoshitaka                  |       Owner:
     Type:  enhancement                      |      Status:  new
 Priority:  normal                           |   Milestone:  3.5
Component:  Performance                      |     Version:  3.0
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch 3.5-early 2nd-opinion  |
---------------------------------------------+------------------

Comment (by mitchoyoshitaka):

 Replying to [comment:33 kurtpayne]:
 > Can we make this testable?  'exit' is not catchable.  Something like
 this?

 I don't think adding another hook there is the right approach to testing
 this. Given the spirit of this ticket, the correct way to test this would
 be to send a head request against the install and verifying that the
 content body sent back is 0 bytes.

 This can even be done right within WP using `wp_remote_head()`.

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


More information about the wp-trac mailing list