summaryrefslogtreecommitdiff
path: root/rt/share/html/NoAuth/js/autohandler
diff options
context:
space:
mode:
Diffstat (limited to 'rt/share/html/NoAuth/js/autohandler')
-rw-r--r--rt/share/html/NoAuth/js/autohandler19
1 files changed, 5 insertions, 14 deletions
diff --git a/rt/share/html/NoAuth/js/autohandler b/rt/share/html/NoAuth/js/autohandler
index 29444400f..8f8c3127c 100644
--- a/rt/share/html/NoAuth/js/autohandler
+++ b/rt/share/html/NoAuth/js/autohandler
@@ -2,7 +2,7 @@
%#
%# COPYRIGHT:
%#
-%# This software is Copyright (c) 1996-2014 Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
@@ -46,17 +46,8 @@
%#
%# 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>