[BUGFIX] Allow PSR-7 Uris to allow no port at all 28/56428/2
authorBenni Mack <benni@typo3.org>
Wed, 21 Mar 2018 21:23:47 +0000 (22:23 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Thu, 22 Mar 2018 14:59:32 +0000 (15:59 +0100)
commita1276ff434461872448099877c3b151607b2fa67
tree1873ba052a30d252fecb41dd4cfbc8d84cff63f1
parent9b95a4643a169fe1c77ddd54f52ce2052d57e2ed
[BUGFIX] Allow PSR-7 Uris to allow no port at all

In order to set a PSR-7 based uri to the default port
the specs allow to set $uri->withPort(null) but our
tests and implementation restrict that.

Resolves: #84518
Releases: master, 8.7
Change-Id: Ic2c3d70fca35a767c7ed9d324eb93b30c66bbd3e
Reviewed-on: https://review.typo3.org/56428
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/core/Classes/Http/Uri.php
typo3/sysext/core/Tests/Unit/Http/UriTest.php