From de704ad659a3f7a96766f002cbd70ba6c3abdf31 Mon Sep 17 00:00:00 2001 From: Adrian Rudnik Date: Tue, 10 May 2011 18:07:21 +0200 Subject: [PATCH] Corrected variable --- book/http_cache.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/http_cache.rst b/book/http_cache.rst index 3a9537672e2..079a8bb4891 100644 --- a/book/http_cache.rst +++ b/book/http_cache.rst @@ -643,7 +643,7 @@ exposing a simple and efficient pattern:: $response->setLastModified($article->getPublishedAt()); // Check that the Response is not modified for the given Request - if ($response->isNotModified($request)) { + if ($response->isNotModified($this->get('request'))) { // return the 304 Response immediately return $response; } else {