mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-02 11:48:08 +08:00
Use lower case header name
This commit is contained in:
parent
5a7f83e59f
commit
9b5202a325
@ -239,11 +239,11 @@ class Request implements RequestInterface
|
|||||||
$host .= ':' . $port;
|
$host .= ':' . $port;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$header = 'host';
|
||||||
if ($this->hasHeader('host')) {
|
if ($this->hasHeader('host')) {
|
||||||
$header = $this->getHeaderLine('host');
|
$host = $this->getHeaderLine('host');
|
||||||
} else {
|
} else {
|
||||||
$header = 'Host';
|
$this->headerNames['host'] = 'host';
|
||||||
$this->headerNames['host'] = 'Host';
|
|
||||||
}
|
}
|
||||||
// Ensure Host is the first header.
|
// Ensure Host is the first header.
|
||||||
$this->headers = [$header => [$host]] + $this->headers;
|
$this->headers = [$header => [$host]] + $this->headers;
|
||||||
|
Loading…
Reference in New Issue
Block a user