[Rt-devel] Invalid content/type for NoAuth/webrtfm.css

Dmitry Sivachenko mitya at cavia.pp.ru
Thu Sep 28 09:37:00 EDT 2006


Hello!

RT-3.6.1:

$ HEAD -S http://localhost/NoAuth/webrtfm.css
HEAD http://localhost/NoAuth/webrtfm.css --> 200 OK
Connection: close
Date: Thu, 28 Sep 2006 13:35:08 GMT
Server: Apache/1.3.37 (Unix) mod_perl/1.29 mod_ssl/2.8.28 OpenSSL/0.9.7d-p1
Content-Type: text/html; charset=utf-8
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Firefox, for instance, refuses to load stylesheet unless it's content-type is
text/css.

It seems you should add the following code to the bottom of webrtfm.css
to fix the issue:

<%init>
$r->content_type('text/css');
</%init>

Thanks!


More information about the Rt-devel mailing list