Closed rshelley closed 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.
Good find. Thanks!
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.