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 105117f..c247be9 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;