comparison 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
comparison
equal deleted inserted replaced
1422:e48290f3d9fb 1423:2c06a7ff4173
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( "css", "text/css" ); 32 map.put( "css", "text/css" );
33 map.put( "js", "application/javascript" );
33 map.put( "mp4", "video/mp4" ); 34 map.put( "mp4", "video/mp4" );
34 // add more as need 35 // add more as need
35 } 36 }
36 37
37 public Response handle(Request request) { 38 public Response handle(Request request) {