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

set missing host on request uri

parent f550b2ff
......@@ -32,7 +32,8 @@ class Client implements ClientInterface
public function sendRequest(RequestInterface $request) {
$requestString = Serializer::toString($request);
$zendRequest = ZendRequest::fromString($requestString);
$zendRequest->getUri()->setHost($request->getUri()->getHost());
try {
$zendResponse = $this->zendClient->send($zendRequest);
} catch (RuntimeException $e) {
......
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