Mercurial Hosting > luan
comparison src/luan/webserver/handlers/ContentTypeHandler.java @ 1234:7e7c2d0c3b99
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 12 Apr 2018 18:25:18 -0600 |
parents | 668f29bc52ea |
children |
comparison
equal
deleted
inserted
replaced
1233:3fad7091b419 | 1234:7e7c2d0c3b99 |
---|---|
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( "css", "text/css" ); | |
32 // add more as need | 33 // add more as need |
33 } | 34 } |
34 | 35 |
35 public Response handle(Request request) { | 36 public Response handle(Request request) { |
36 Response response = handler.handle(request); | 37 Response response = handler.handle(request); |