]> git.sesse.net Git - pr0n/commitdiff
Fix an issue where static files would have no content-type or -length set.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 27 Nov 2015 16:49:44 +0000 (17:49 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 27 Nov 2015 16:49:44 +0000 (17:49 +0100)
perl/Sesse/pr0n/Common.pm

index d72e0cb967892c6921b80944f64d5d962afc9423..171f47d538ebead85ed6dc0e43f8b1e49f9a1fcc 100644 (file)
@@ -1007,7 +1007,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 {