Hello.

When loading static png, Chrome throws a lot of warnings like:

Resource interpreted as Image but transferred with MIME type 
image/x-apple-ios-png:
"http://127.0.0.1:8000/nabla/static/js/dojo/dijit/themes/claro/form/images/buttonArrows.png";.

I don't want to modify gluon.contenttype, so I tried to override that in my 
model:

from gluon.contenttype import contenttype, CONTENT_TYPE
print CONTENT_TYPE['.png'] #-> 'image/x-apple-ios-png' (only the first time)
CONTENT_TYPE['.png']='image/png'
print contenttype('.png') #-> 'image/png'

But web2py still sends "image/x-apple-ios-png".

What reason is there for this? How can I override it? 

Regards.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to