Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 12fa328

Browse files
committed
Comments fixed
1 parent 0fc0857 commit 12fa328

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/Symfony/Component/HttpFoundation/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ CHANGELOG
44
6.2
55
---
66

7-
* Http cache store uses the `xxh128` algorithm
7+
* The HTTP cache store uses the `xxh128` algorithm
88

99
6.1
1010
---

src/Symfony/Component/HttpKernel/HttpCache/Store.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
* Store implements all the logic for storing cache metadata (Request and Response headers).
1919
*
2020
* @author Fabien Potencier <[email protected]>
21+
*
22+
* This code is partially based on the Rack-Cache library by Ryan Tomayko,
23+
* which is released under the MIT license.
2124
*/
2225
class Store implements StoreInterface
2326
{
@@ -179,7 +182,7 @@ public function write(Request $request, Response $response): string
179182
if ($this->getPath($digest) !== $response->headers->get('X-Body-File')) {
180183
throw new \RuntimeException('X-Body-File and X-Content-Digest do not match.');
181184
}
182-
// Everything seems ok, omit writing content to disk
185+
// Everything seems ok, omit writing content to disk
183186
} else {
184187
$digest = $this->generateContentDigest($response);
185188
$response->headers->set('X-Content-Digest', $digest);

0 commit comments

Comments
 (0)