]> git.deb.at Git - deb/packages.git/blobdiff - lib/Packages/Dispatcher.pm
Merge branch 'master' into debian-master
[deb/packages.git] / lib / Packages / Dispatcher.pm
index 67488e9794e65f3749468f206c7a270555f82f27..d0343774eb2aafd64855399b05f3ec9a361cd4fb 100755 (executable)
@@ -68,8 +68,11 @@ sub do_dispatch {
                         stable => 'squeeze',
                         testing => 'wheezy',
                         unstable => 'sid',
+                        'rc-buggy' => 'experimental',
                         '5.0' => 'lenny',
-                        '6.0' => 'squeeze' );
+                        '6.0' => 'squeeze',
+                        'oldstable-backports' => 'lenny-backports',
+                        'stable-backports' => 'squeeze-backports' );
 
     # Read in all the variables set by the form
     my $input;
@@ -101,8 +104,9 @@ sub do_dispatch {
     $last_modified = $now if $now - $last_modified < 3600;
 
     if ($input->http('If-Modified-Since') and
-       (my $modtime = str2time($input->http('If-Modified-Since'), 'UTC'))) {
-       if ($modtime <= $last_modified) {
+       (my $client_timestamp = str2time($input->http('If-Modified-Since'), 'UTC'))) {
+       if ($client_timestamp >= $last_modified) {
+           # we are not modified since asked -> return "304 Not Modified"
            print $input->header(-status => 304);
            exit;
        }