[BUGFIX] Return http_code for HEAD requests in GeneralUtility::getUrl 94/51994/4
authorNicole Cordes <typo3@cordes.co>
Fri, 10 Mar 2017 00:07:49 +0000 (01:07 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 8 Jun 2017 14:02:23 +0000 (16:02 +0200)
commit88fd7dfb3f2123953574562bec30aa00f49fddeb
tree67b8fb56e2b087e28096455a73a1766ad30fd9ae
parent18dec8f9ec6fde1d4246fbae5fa59b8cab63743d
[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.

Resolves: #80220
Releases: 7.6
Change-Id: I64108a16846a294f0bbee07289afcb79474833ea
Reviewed-on: https://review.typo3.org/51994
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Classes/Utility/GeneralUtility.php