Page 1 of 1

newlisp bug: -http mode transfers wrong MIME types

Posted: Sat Sep 06, 2008 10:03 pm
by itistoday
This is a somewhat significant bug as it makes web-development not possible using Firefox (I have to use Safari instead).

Safari picks up the error in its console:

"Resource interpreted as stylesheet but transferred with MIME type text/html."
For http://localhost:8080/css/style.css

and

"Resource interpreted as script but transferred with MIME type text/html."
For http://localhost:8080/js/effects.js

Firefox won't load the CSS file (and probably ignores the javascript too) because of this...

Posted: Sat Sep 06, 2008 10:39 pm
by Lutz
The next version will add the following MIME types:

text/css for .css
application/javascript for .js

for MIME types handled currently see:

http://www.newlisp.org/downloads/newlis ... #http_mode

Posted: Sat Sep 06, 2008 10:44 pm
by itistoday
Thanks a bunch! :-D