Skip to content

Commit

Permalink
Oh my! fabbot
Browse files Browse the repository at this point in the history
  • Loading branch information
mpdude committed Jun 10, 2020
1 parent b0b8cf4 commit a828c93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Symfony/Component/HttpKernel/HttpCache/Store.php
Expand Up @@ -180,12 +180,12 @@ public function write(Request $request, Response $response)
if ($response->headers->has('X-Body-File')) {
// Assume the response came from disk, but at least perform some safeguard checks
if (!$response->headers->has('X-Content-Digest')) {
throw new \RuntimeException('A restored response must have the X-Content-Digest header');
throw new \RuntimeException('A restored response must have the X-Content-Digest header.');
}

$digest = $response->headers->get('X-Content-Digest');
if ($this->getPath($digest) !== $response->headers->get('X-Body-File')) {
throw new \RuntimeException('X-Body-File and X-Content-Digest do not match');
throw new \RuntimeException('X-Body-File and X-Content-Digest do not match.');
}
// Everything seems ok, omit writing content to disk
} else {
Expand Down

0 comments on commit a828c93

Please sign in to comment.