cgbystrom / netty-tools

A collection of tools useful when working with JBoss Netty.
MIT License
259 stars 68 forks source link

Added text/html mime type #11

Closed rshelley closed 12 years ago

rshelley commented 12 years ago

Some systems don't have a mime.types file (_cough_Amazon EC2cough) in the Java lib directory and so HTML files will be rendered as application/octet-stream forcing browsers to download the HTML file instead of showing it.

All as per http://docs.oracle.com/javase/6/docs/api/javax/activation/MimetypesFileTypeMap.html

I'm sure more could be added here to be safe, but I just added what I needed for the moment.

cgbystrom commented 12 years ago

Good find. Thanks!