it's fixed in trunk. if you need it, just copy over the 
gluon/contenttype.py file, it won't harm your installation.

On Wednesday, May 8, 2013 4:36:53 PM UTC+2, Txema Vicente wrote:
>
> 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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to