comparison src/goodjava/webserver/handlers/ContentTypeHandler.java @ 1510:20375c20289d

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 20 May 2020 21:57:27 -0600
parents fb003c4003dd
children fa066aaa068c
comparison
equal deleted inserted replaced
1509:0ba144491a42 1510:20375c20289d
27 String htmlType = "text/html" + attrs; 27 String htmlType = "text/html" + attrs;
28 String textType = "text/plain" + attrs; 28 String textType = "text/plain" + attrs;
29 contentTypeForNoExtension = htmlType; 29 contentTypeForNoExtension = htmlType;
30 map.put( "html", htmlType ); 30 map.put( "html", htmlType );
31 map.put( "txt", textType ); 31 map.put( "txt", textType );
32 map.put( "luan", textType );
32 map.put( "css", "text/css" ); 33 map.put( "css", "text/css" );
33 map.put( "js", "application/javascript" ); 34 map.put( "js", "application/javascript" );
34 map.put( "json", "application/json" + attrs ); 35 map.put( "json", "application/json" + attrs );
35 map.put( "mp4", "video/mp4" ); 36 map.put( "mp4", "video/mp4" );
36 // add more as need 37 // add more as need