8000 Merge branch '2.3' into 2.7 · symfony/symfony@0a40b54 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0a40b54

Browse files
Merge branch '2.3' into 2.7
* 2.3: [HttpFoundation] Workaround HHVM rewriting HTTP response line Conflicts: src/Symfony/Component/HttpFoundation/Response.php
2 parents d1a50a2 + 5f93188 commit 0a40b54

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Symfony/Component/HttpFoundation/Response.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -329,16 +329,16 @@ public function sendHeaders()
329329
return $this;
330330
}
331331

332-
// status
333-
header(sprintf('HTTP/%s %s %s', $this->version, $this->statusCode, $this->statusText), true, $this->statusCode);
334-
335332
// headers
336333
foreach ($this->headers->allPreserveCase() as $name => $values) {
337334
foreach ($values as $value) {
338-
header($name.': '.$value, false, $this->statusCode);
335+
header($name.': '.$value, false);
339336
}
340337
}
341338

339+
// status
340+
header(sprintf('HTTP/%s %s %s', $this->version, $this->statusCode, $this->statusText), true, $this->statusCode);
341+
342342
// cookies
343343
foreach ($this->headers->getCookies() as $cookie) {
344344
setcookie($cookie->getName(), $cookie->getValue(), $cookie->getExpiresTime(), $cookie->getPath(), $cookie->getDomain(), $cookie->isSecure(), $cookie->isHttpOnly());

0 commit comments

Comments
 (0)
0