Fix the wrong header name assignment
@@ -109,7 +109,7 @@ class Request extends Message implements RequestInterface
// Ensure Host is the first header.
// See: http://tools.ietf.org/html/rfc7230#section-5.4
$this->headers = ['Host' => $host] + $this->headers;
- $this->headerNames['host'] = $host;
+ $this->headerNames['host'] = 'Host';
}
public function getUri(): UriInterface
