/usr/share/perl5/Spoon/Headers.pm is in libspoon-perl 0.24-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | package Spoon::Headers;
use Spoon::Base -Base;
field content_type => 'text/html';
field charset => 'UTF-8';
field expires => 'now';
field pragma => 'no-cache';
field cache_control => 'no-cache';
field redirect => '';
sub print {
my $headers = $self->get;
$self->utf8_encode($headers);
print $headers;
}
sub get {
$self->redirect
? CGI::redirect($self->redirect_value)
: CGI::header($self->value);
}
sub redirect_value {
(
$self->hub->cookie->set_cookie_headers,
-location => $self->redirect,
);
}
sub value {
(
$self->hub->cookie->set_cookie_headers,
-charset => $self->charset,
-type => $self->content_type,
-expires => $self->expires,
-pragma => $self->pragma,
-cache_control => $self->cache_control,
-last_modified => $self->last_modified,
);
}
sub last_modified {
scalar gmtime;
}
|