We will work on Apr 26th (Saturday) and will be off from Apr 30th (Wednesday) until May 2nd (Friday) for public holiday in our country

Commit 271a7c30 authored by Ivan Chepurnyi's avatar Ivan Chepurnyi

Merge pull request #87 from thomasvs/bug-http-rawheaders-dev

don't complain about raw headers that are not name: value
parents 59c739a1 0b8baf84
......@@ -91,6 +91,7 @@ class EcomDev_PHPUnit_Controller_Response_Http
$this->_sentHeaders[null] = 'HTTP/1.1 ' . $this->_httpResponseCode;
foreach ($this->_headersRaw as $headerRaw) {
if (strpos($headerRaw, ':') === false) { continue; }
list($headerName, $headerValue) = explode(':', $headerRaw, 2);
$headerName = $this->_normalizeHeader($headerName);
if (isset($this->_sentHeaders[$headerName])) {
......@@ -224,4 +225,4 @@ class EcomDev_PHPUnit_Controller_Response_Http
return $this->_sentHeaders === null;
}
}
\ No newline at end of file
}
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