[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:52:14 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 kurtpayne):

 Replying to [comment:34 mitchoyoshitaka]:
 > 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.

 The unit tests all run within phpunit and do not actually send requests
 through a web server*.  This won't work as a unit test.

 *Exception: the remote HTTP tests use api.wordpress.org, but this isn't a
 !WordPress install

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


More information about the wp-trac mailing list