diff --git a/FileDownloader/Downloader/BaseDownloader.php b/FileDownloader/Downloader/BaseDownloader.php index dc3bd27..916eb98 100644 --- a/FileDownloader/Downloader/BaseDownloader.php +++ b/FileDownloader/Downloader/BaseDownloader.php @@ -42,6 +42,7 @@ use FileDownloader\FDTools; use FileDownloader\IDownloader; use Nette\Environment; +use Nette\Http\Response; use Nette\Object; /** @@ -91,7 +92,7 @@ protected function setupCacheHeaders(BaseFileDownload $file) { $res->setExpiration(time() + 99999999); $res->setHeader('Last-Modified', "Mon, 23 Jan 1978 10:00:00 GMT"); if (!empty($_SERVER["HTTP_IF_MODIFIED_SINCE"])) { - $res->setCode(HttpResponse::S304_NOT_MODIFIED); + $res->setCode(Response::S304_NOT_MODIFIED); //header("HTTP/1.1 304 Not Modified"); exit(); };