RT 4.2.11, ticket#13852
[freeside.git] / rt / share / html / NoAuth / js / autohandler
index c17af93..8f8c312 100644 (file)
 %#
 %# END BPS TAGGED BLOCK }}}
 <%init>
-
-my $type;
-my $file = $m->base_comp->source_file;
-
-if ($file =~ /\.(gif|png|jpe?g)$/i) {
-    my $relfile = $m->base_comp->path;
-    RT::Interface::Web->SendStaticFile( File => $file, RelativeFile => $relfile );
-} else {
-    &RT::Interface::Web::StaticFileHeaders();
-    $r->content_type('application/x-javascript');
-    $m->call_next();
-    return();
-}
+RT::Interface::Web::StaticFileHeaders();
+$r->content_type('application/x-javascript; charset=utf-8');
+$m->call_next();
+return();
 </%init>