Skip to content

Commit 79ec4d5

Browse files
author
Sergey Semenov
committed
MAGETWO-33074: Upgrade response class.
1 parent 184873d commit 79ec4d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/PageCache/Model/Controller/Result/BuiltinPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function aroundRenderResult(
7272
}
7373

7474
if ($this->state->getMode() == \Magento\Framework\App\State::MODE_DEVELOPER) {
75-
$cacheControl = $response->getHeader('Cache-Control')['value'];
75+
$cacheControl = $response->getHeader('Cache-Control')->getFieldValue();
7676
$response->setHeader('X-Magento-Cache-Control', $cacheControl);
7777
$response->setHeader('X-Magento-Cache-Debug', 'MISS', true);
7878
}

lib/internal/Magento/Framework/HTTP/PhpEnvironment/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Response extends \Zend\Http\PhpEnvironment\Response implements \Magento\Fr
2121
* If header with specified name was not found returns false.
2222
*
2323
* @param string $name
24-
* @return \Zend\Http\Header\Interface|bool
24+
* @return \Zend\Http\Header\HeaderInterface|bool
2525
*/
2626
public function getHeader($name)
2727
{

0 commit comments

Comments
 (0)