As it turns out, the Content-Type wasn't the root of my problems. I had a
syntax error in my template (.ejs file) which caused a lot of problems that
were hard to detect.

Nevertheless, I would like to specify that ".ejs" files should have the
MIME type "text/plain" since it is not given any Content-Type at all
presently. Judging from the error messages in Firebug it does seem like the
browser (at least Firefox) then tries to interpret it as XML.

Does anyone know how to do this with Pax-Web?

/Bengt

2012/9/6 Bengt Rodehav <[email protected]>

> I'm using Karar 2.2.8 which includes Pax-Web 1.0.11. I'm using
> JavascriptMVC and its templating engine. The templates have the extension
> ".ejs".
>
> Until recently this worked fine but I now have lots of problems with this
> - probably due to "background updates" of my webb browsers. It seems like
> the web browser tries to interpret the .ejs files as xml and complains that
> it is not well-formed. The .ejs files do not have a Content-Type header in
> the response which probably leads the browser to do its "best guess".
>
> How can I tell Pax-Web that files with the extension ".ejs" shall have the
> Content-Type "text/plan"?
>
> /Bengt
>
_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to