Hi,

I need to add MIME types to twisted.web.static.File.

The following works, but seems to use internal stuff .. whats the "correct" way 
to do?


from twisted.web.static import File

webdir = File(".")
webdir.contentTypes['.crt'] = 'application/x-x509-ca-cert'


http://twistedmatrix.com/documents/12.1.0/api/twisted.web.static.File.html


Cheers,
Tobias


_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to