X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FSrc.pm;fp=lib%2FGruntmaster%2FPage%2FSrc.pm;h=0000000000000000000000000000000000000000;hb=e03e380bb1f61aca398e88f863514e4a937c12ce;hp=4fc2550dc9b2d9c0fcc2889a9331409e74d78301;hpb=a122bb9b5954e4384b8f1c3f52bcdda74b421f25;p=plack-app-gruntmaster.git diff --git a/lib/Gruntmaster/Page/Src.pm b/lib/Gruntmaster/Page/Src.pm deleted file mode 100644 index 4fc2550..0000000 --- a/lib/Gruntmaster/Page/Src.pm +++ /dev/null @@ -1,22 +0,0 @@ -package Gruntmaster::Page::Src; - -use Gruntmaster::Page::Base; - -use constant CONTENT_TYPES => +{ - c => 'text/x-csrc', - cpp => 'text/x-c++src', - cs => 'text/x-chsarp', # Used by GNOME. Not in mime.types. - java => 'text/x-java', - pas => 'text/x-pascal', - pl => 'text/x-perl', - py => 'text/x-python', -}; - -sub generate{ - my ($self, $format, $env, $job, $ext) = @_; - debug $env => "Job is $job and extension is $ext"; - - [200, ['Content-Type' => CONTENT_TYPES->{$ext}, 'Cache-Control' => 'max-age=604800', 'X-Forever' => 1], [db($env)->job($job)->source] ] -} - -1