From: Gerfried Fuchs Date: Mon, 31 Oct 2011 14:15:41 +0000 (+0100) Subject: fix off-by-one after switching on the brain again X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=a6b39cb5eec2cf7d8a0d756f0090a9d8644443c9;hp=-c;p=deb%2Fpackages.git fix off-by-one after switching on the brain again --- a6b39cb5eec2cf7d8a0d756f0090a9d8644443c9 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;