]> git.deb.at Git - deb/packages.git/commitdiff
fix off-by-one after switching on the brain again
authorGerfried Fuchs <rhonda@debian.org>
Mon, 31 Oct 2011 14:15:41 +0000 (15:15 +0100)
committerGerfried Fuchs <rhonda@debian.org>
Mon, 31 Oct 2011 14:15:41 +0000 (15:15 +0100)
lib/Packages/Dispatcher.pm

index 105117f6ca6f0a382043ed10ea4ff943808bdbdf..c247be94d3a4fb1685d42b21849b82a038cdf2e6 100755 (executable)
@@ -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;