comparison src/luan/lib/webserver/handlers/ContentTypeHandler.java @ 1370:ba4fc39423a4

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 23 Jun 2019 19:50:55 -0600
parents 643cf1c37723
children
comparison
equal deleted inserted replaced
1369:709f7498a363 1370:ba4fc39423a4
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( "mp4", "video/mp4" );
33 // add more as need 34 // add more as need
34 } 35 }
35 36
36 public Response handle(Request request) { 37 public Response handle(Request request) {
37 Response response = handler.handle(request); 38 Response response = handler.handle(request);