X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FPageCache%2FRequestPolicy%2FCommandLineOrUnsafeMethod.php;fp=web%2Fcore%2Flib%2FDrupal%2FCore%2FPageCache%2FRequestPolicy%2FCommandLineOrUnsafeMethod.php;h=27a1f7120d75b144e1ed68e0a1537a72a2e084f8;hp=bbf85a33e9976be9278663eb17f970b39947ca9d;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/lib/Drupal/Core/PageCache/RequestPolicy/CommandLineOrUnsafeMethod.php b/web/core/lib/Drupal/Core/PageCache/RequestPolicy/CommandLineOrUnsafeMethod.php index bbf85a33e..27a1f7120 100644 --- a/web/core/lib/Drupal/Core/PageCache/RequestPolicy/CommandLineOrUnsafeMethod.php +++ b/web/core/lib/Drupal/Core/PageCache/RequestPolicy/CommandLineOrUnsafeMethod.php @@ -18,7 +18,7 @@ class CommandLineOrUnsafeMethod implements RequestPolicyInterface { * {@inheritdoc} */ public function check(Request $request) { - if ($this->isCli() || !$request->isMethodSafe()) { + if ($this->isCli() || !$request->isMethodCacheable()) { return static::DENY; } }