Mercurial Hosting > luan
comparison src/luan/webserver/handlers/ContentTypeHandler.java @ 1148:49fb4e83484f
webserver - change headers to lower case
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 04 Feb 2018 17:11:06 -0700 |
parents | c123ee15f99b |
children | 668f29bc52ea |
comparison
equal
deleted
inserted
replaced
1147:30d87b7d1d62 | 1148:49fb4e83484f |
---|---|
6 import luan.webserver.Request; | 6 import luan.webserver.Request; |
7 import luan.webserver.Response; | 7 import luan.webserver.Response; |
8 | 8 |
9 | 9 |
10 public class ContentTypeHandler implements Handler { | 10 public class ContentTypeHandler implements Handler { |
11 public final static String CONTENT_TYPE = "Content-Type"; | 11 public final static String CONTENT_TYPE = "content-type"; |
12 | 12 |
13 private final Handler handler; | 13 private final Handler handler; |
14 | 14 |
15 // maps extension to content-type | 15 // maps extension to content-type |
16 // key must be lower case | 16 // key must be lower case |