Mercurial Hosting > luan
diff src/goodjava/webserver/handlers/ContentTypeHandler.java @ 1423:2c06a7ff4173
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 19 Nov 2019 17:42:11 -0700 |
parents | 27efb1fcbcb5 |
children | fb003c4003dd |
line wrap: on
line diff
--- a/src/goodjava/webserver/handlers/ContentTypeHandler.java Sun Nov 17 16:28:51 2019 -0700 +++ b/src/goodjava/webserver/handlers/ContentTypeHandler.java Tue Nov 19 17:42:11 2019 -0700 @@ -30,6 +30,7 @@ map.put( "html", htmlType ); map.put( "txt", textType ); map.put( "css", "text/css" ); + map.put( "js", "application/javascript" ); map.put( "mp4", "video/mp4" ); // add more as need }