From: Marius Gavrilescu Date: Tue, 24 Feb 2015 20:04:56 +0000 (+0200) Subject: Fix content types on sources X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=1bc7c028ecfdd1cb24ba0b01317bfda06b441a69;p=gruntmaster-page.git Fix content types on sources --- diff --git a/lib/Plack/App/Gruntmaster.pm b/lib/Plack/App/Gruntmaster.pm index 40879a9..a7e4e1d 100644 --- a/lib/Plack/App/Gruntmaster.pm +++ b/lib/Plack/App/Gruntmaster.pm @@ -124,7 +124,7 @@ sub dispatch_request{ my $private = job->private || job->problem->private || job->contest && job->contest->is_running; forbid !$isowner && $private; my $privacy = $private ? 'private' : 'public'; - my @headers = ('X-Forever' => 1, 'Cache-Control' => "$privacy, max-age=604800", 'Content-Type' => CONTENT_TYPES->{job->format}); + my @headers = ('X-Forever' => 1, 'Cache-Control' => "$privacy, max-age=604800", 'Content-Type' => CONTENT_TYPES->{job->extension}); push @headers, (Vary => 'Authorization') if $private; [200, \@headers, [job->source]] },