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

Jesse Vincent jesse at bestpractical.com
Thu Sep 28 09:46:07 EDT 2006




On Thu, Sep 28, 2006 at 05:37:00PM +0400, Dmitry Sivachenko wrote:
> Hello!
> 
> RT-3.6.1:

What version of RTFM are you running?

> $ 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!
> _______________________________________________
> List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
> 

-- 


More information about the Rt-devel mailing list