Commit ac219ce2 authored by Mattia Bernasconi's avatar Mattia Bernasconi

Risolto BUG header multipli (ad es. 'Vary')

parent 4e1bb738
...@@ -184,9 +184,12 @@ class Driver ...@@ -184,9 +184,12 @@ class Driver
// Headers // Headers
foreach ($this->symfonyResponse->headers->allPreserveCase() as $name => $values) { foreach ($this->symfonyResponse->headers->allPreserveCase() as $name => $values) {
//$name = implode('-', array_map('ucfirst', explode('-', $name))); //$name = implode('-', array_map('ucfirst', explode('-', $name)));
foreach ($values as $value) { /*foreach ($values as $value) {
$this->swooleResponse->header($name, $value); $this->swooleResponse->header($name, $value);
} }*/
//Risolto bug su header multipli. Vengono cocatenati in automatico
$this->swooleResponse->header($name, implode(", ", $values));
} }
$this->swooleResponse->end($this->symfonyResponse->getContent()); $this->swooleResponse->end($this->symfonyResponse->getContent());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment