[Zope] LocalFS problems with @import-ing stylesheets

Peter Bengtsson peter at fry-it.com
Mon Oct 10 03:33:47 EDT 2005


2005/10/10, Samuel Souk-aloun <samsouk at noos.fr>:
> I can confirm the problem, the stylesheet is not rendered from localfs
> with firefox
>
> the problem is caused by an incorect http header "text/plain" instead of
> "text/css"
> I've tried to add a type_map to the LocalFS but the content-type does
> not change
> so, for me, it is clearly a LocalFS issue
>
> anyone knows how to hardcode this content-type in LocalFS.py ?

How about setting the content-type in the stylesheet file? That's what
I always do.
<dtml-call "RESPONSE.setHeader('Content-Type','text/css')">

--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com


More information about the Zope mailing list