Commit 5dfe8f01 authored by Sebastian Kehr's avatar Sebastian Kehr 🚣🏼
Browse files

Carry over request uri scheme.

parent 390a30fa
......@@ -33,7 +33,9 @@ class Client implements ClientInterface
{
$serializedRequest = Serializer::toString($request);
$zendRequest = ZendRequest::fromString($serializedRequest);
$zendRequest->getUri()->setHost($request->getUri()->getHost());
$requestHost = ($requestUri = $request->getUri())->getHost();
($zendRequestUri = $zendRequest->getUri())->setHost($requestHost);
$zendRequestUri->setScheme($requestUri->getScheme());
try {
$zendResponse = $this->zendClient->send($zendRequest);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment