File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
app/code/Magento/PageCache/Model/Controller/Result
lib/internal/Magento/Framework/HTTP/PhpEnvironment Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ public function aroundRenderResult(
72
72
}
73
73
74
74
if ($ this ->state ->getMode () == \Magento \Framework \App \State::MODE_DEVELOPER ) {
75
- $ cacheControl = $ response ->getHeader ('Cache-Control ' )[ ' value ' ] ;
75
+ $ cacheControl = $ response ->getHeader ('Cache-Control ' )-> getFieldValue () ;
76
76
$ response ->setHeader ('X-Magento-Cache-Control ' , $ cacheControl );
77
77
$ response ->setHeader ('X-Magento-Cache-Debug ' , 'MISS ' , true );
78
78
}
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class Response extends \Zend\Http\PhpEnvironment\Response implements \Magento\Fr
21
21
* If header with specified name was not found returns false.
22
22
*
23
23
* @param string $name
24
- * @return \Zend\Http\Header\Interface |bool
24
+ * @return \Zend\Http\Header\HeaderInterface |bool
25
25
*/
26
26
public function getHeader ($ name )
27
27
{
You can’t perform that action at this time.
0 commit comments