mirror of
git://develop.git.wordpress.org/
synced 2025-03-20 03:49:54 +01:00
By default, the REST API responds to HEAD rqeuests by calling the GET handler and omitting the body from the response. While convenient, this ends up performing needless work that slows down the API response time. This commit adjusts the Core controllers to specifically handle HEAD requests by not preparing the response body. Fixes #56481. Props antonvlasenko, janusdev, ironprogrammer, swissspidy, spacedmonkey, mukesh27, mamaduka, timothyblynjacobs. git-svn-id: https://develop.svn.wordpress.org/trunk@59899 602fd350-edb4-49c9-b593-d223f7449a82