We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0595045 + 403c333 commit a976069Copy full SHA for a976069
1 file changed
system/HTTP/Response.php
@@ -713,7 +713,7 @@ public function sendHeaders()
713
714
// Per spec, MUST be sent with each request, if possible.
715
// http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html
716
- if (! isset($this->headers['Date']))
+ if (! isset($this->headers['Date']) && php_sapi_name() !== 'cli-server')
717
{
718
$this->setDate(\DateTime::createFromFormat('U', (string) time()));
719
}
@@ -724,7 +724,7 @@ public function sendHeaders()
724
// Send all of our headers
725
foreach ($this->getHeaders() as $name => $values)
726
727
- header($name . ': ' . $this->getHeaderLine($name), false, $this->statusCode);
+ header($name . ': ' . $this->getHeaderLine($name), true, $this->statusCode);
728
729
730
return $this;
0 commit comments