http_code not returned for HEAD requests in \TYPO3\CMS\Core\Utility\GeneralUtility::getUrl
If you switch to a HEAD request in \TYPO3\CMS\Core\Utility\GeneralUtility::getUrl and provide a report array to get more information, the header status will not be return. This happens because the content from that request (obviously) is emtpy and considerer as an error.
[BUGFIX] Return http_code for HEAD requests in GeneralUtility::getUrl
As there is no content available for a HEAD request
GeneralUtility::getUrl currently returns an error message for HEAD
requests instead of proper http_code information. This patch ensures
all information are available.
Reviewed-by: Markus Klein <firstname.lastname@example.org>
Tested-by: Markus Klein <email@example.com>
Reviewed-by: Wouter Wolters <firstname.lastname@example.org>
Tested-by: Wouter Wolters <email@example.com>