]> iEval git - plack-app-gruntmaster.git/commitdiff
Fix content types on sources
authorMarius Gavrilescu <marius@ieval.ro>
Tue, 24 Feb 2015 20:04:56 +0000 (22:04 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Tue, 24 Feb 2015 20:04:56 +0000 (22:04 +0200)
lib/Plack/App/Gruntmaster.pm

index 40879a98e9ac87f26d381063bb64fddd059159c7..a7e4e1dd52dc63c335482347c70359aedd42c400 100644 (file)
@@ -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]]
                },
This page took 0.026177 seconds and 4 git commands to generate.