]> git.sesse.net Git - pr0n/blobdiff - perl/Sesse/pr0n/Common.pm
Unbreak a weird special case.
[pr0n] / perl / Sesse / pr0n / Common.pm
index d72e0cb967892c6921b80944f64d5d962afc9423..6685008d9a98eba693b6eceb7718521c20628123 100644 (file)
@@ -603,7 +603,6 @@ sub ensure_cached {
                                $img = read_original_image($r, $filename, $id, $dbwidth, $dbheight, 0);
                                $new_dbwidth = $width = $img->Get('columns');
                                $new_dbheight = $height = $img->Get('rows');
-                               @$img = ();
                        } else {
                                $img = Image::Magick->new;
                                $width = $dbwidth;
@@ -1007,7 +1006,7 @@ sub set_last_modified {
        my ($res, $mtime) = @_;
 
        my $str = POSIX::strftime("%a, %d %b %Y %H:%M:%S GMT", gmtime($mtime));
-       $res->headers({ 'Last-Modified' => $str });
+       $res->header('Last-Modified' => $str);
 }
 
 sub get_server_name {