Skip to content

Commit 19b9bfb

Browse files
author
Prabhu Ram
committed
MC-31987: Varnish graphql cache has to skip authenticated requests
- (Forward Port) MC-31679: FPC doesn't work with Varnish enabled to 2.4
1 parent 6470806 commit 19b9bfb

File tree

1 file changed

+0
-23
lines changed
  • lib/internal/Magento/Framework/HTTP/PhpEnvironment

1 file changed

+0
-23
lines changed

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

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -183,27 +183,4 @@ public function __sleep()
183183
{
184184
return ['content', 'isRedirect', 'statusCode'];
185185
}
186-
187-
/**
188-
* Sending provided headers.
189-
*
190-
* Had to be overridden because the original did not work correctly with multi-headers.
191-
*/
192-
public function sendHeaders()
193-
{
194-
if ($this->headersSent()) {
195-
return $this;
196-
}
197-
198-
$status = $this->renderStatusLine();
199-
header($status);
200-
201-
/** @var \Zend\Http\Header\HeaderInterface $header */
202-
foreach ($this->getHeaders() as $header) {
203-
header($header->toString(), false);
204-
}
205-
206-
$this->headersSent = true;
207-
return $this;
208-
}
209186
}

0 commit comments

Comments
 (0)