We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a10283 commit 74bd607Copy full SHA for 74bd607
src/Proxy.php
@@ -63,15 +63,11 @@ public function to($target)
63
64
$target = new Uri($target);
65
66
- // Overwrite target scheme and host.
+ // Overwrite target scheme, host and port.
67
$uri = $this->request->getUri()
68
->withScheme($target->getScheme())
69
- ->withHost($target->getHost());
70
-
71
- // Check for custom port.
72
- if ($port = $target->getPort()) {
73
- $uri = $uri->withPort($port);
74
- }
+ ->withHost($target->getHost())
+ ->withPort($target->getPort());
75
76
// Check for subdirectory.
77
if ($path = $target->getPath()) {
0 commit comments