Skip to content

Commit

Permalink
Update src/CacheMiddleware.php
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Robatel <kevinrob2@gmail.com>
  • Loading branch information
rhysemmerson and Kevinrob authored Jan 18, 2022
1 parent 2b4a7da commit 1830d78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CacheMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function __invoke(callable $handler)
if (!isset($this->httpMethods[strtoupper($request->getMethod())])) {
// No caching for this method allowed

return $handler($request, $options)->then(
return $handler($request, $options)->then(
function (ResponseInterface $response) use ($request) {
if (!isset($this->safeMethods[$request->getMethod()])) {
// Invalidate cache after a call of non-safe method on the same URI
Expand Down

0 comments on commit 1830d78

Please sign in to comment.