You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.
when setting a relative URI /example the Zend\Http\Client::setUri() method adds a default port and so invalidates the URI resulting in isValidRelative() returning FALSE instead of TRUE.
I don't know how to build a patch, but line 323 of Client.php should be if (! $this->getUri()->getPort() && $this->getUri()->isAbsolute()) {
instead of if (! $this->getUri()->getPort()) {
Cheers
The text was updated successfully, but these errors were encountered:
samsonasik
added a commit
to samsonasik/zend-http
that referenced
this issue
May 6, 2018
Hi,
when setting a relative URI
/example
theZend\Http\Client::setUri()
method adds a default port and so invalidates the URI resulting in isValidRelative() returning FALSE instead of TRUE.Expected output
Actual output
I don't know how to build a patch, but line 323 of
Client.php
should beif (! $this->getUri()->getPort() && $this->getUri()->isAbsolute()) {
instead of
if (! $this->getUri()->getPort()) {
Cheers
The text was updated successfully, but these errors were encountered: