From a6b39cb5eec2cf7d8a0d756f0090a9d8644443c9 Mon Sep 17 00:00:00 2001 From: Gerfried Fuchs Date: Mon, 31 Oct 2011 15:15:41 +0100 Subject: [PATCH] fix off-by-one after switching on the brain again --- lib/Packages/Dispatcher.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Packages/Dispatcher.pm b/lib/Packages/Dispatcher.pm index 105117f..c247be9 100755 --- a/lib/Packages/Dispatcher.pm +++ b/lib/Packages/Dispatcher.pm @@ -102,7 +102,7 @@ sub do_dispatch { if ($input->http('If-Modified-Since') and (my $client_timestamp = str2time($input->http('If-Modified-Since'), 'UTC'))) { - if ($client_timestamp > $last_modified) { + if ($client_timestamp >= $last_modified) { # we are not modified since asked -> return "304 Not Modified" print $input->header(-status => 304); exit; -- 2.39.2