[HttpFoundation] replaced LF by CRLF as per the spec
This commit is contained in:
parent
0bad012290
commit
d39c3be779
@ -101,16 +101,16 @@ class Response
|
|||||||
$this->fixContentType();
|
$this->fixContentType();
|
||||||
|
|
||||||
// status
|
// status
|
||||||
$content .= sprintf('HTTP/%s %s %s', $this->version, $this->statusCode, $this->statusText)."\n";
|
$content .= sprintf('HTTP/%s %s %s', $this->version, $this->statusCode, $this->statusText)."\r\n";
|
||||||
|
|
||||||
// headers
|
// headers
|
||||||
foreach ($this->headers->all() as $name => $values) {
|
foreach ($this->headers->all() as $name => $values) {
|
||||||
foreach ($values as $value) {
|
foreach ($values as $value) {
|
||||||
$content .= "$name: $value\n";
|
$content .= "$name: $value\r\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$content .= "\n".$this->getContent();
|
$content .= "\r\n".$this->getContent();
|
||||||
|
|
||||||
return $content;
|
return $content;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user