Mercurial Hosting > luan
changeset 1624:fe611f6e3c28
more content types
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sat, 07 Aug 2021 20:01:46 -0600 |
parents | 582384548a69 |
children | 57c8baadb357 |
files | src/goodjava/webserver/handlers/ContentTypeHandler.java |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
diff -r 582384548a69 -r fe611f6e3c28 src/goodjava/webserver/handlers/ContentTypeHandler.java --- a/src/goodjava/webserver/handlers/ContentTypeHandler.java Sun Aug 01 18:59:01 2021 -0600 +++ b/src/goodjava/webserver/handlers/ContentTypeHandler.java Sat Aug 07 20:01:46 2021 -0600 @@ -23,12 +23,15 @@ map.put( "log", textType ); map.put( "html", "text/html; charset=utf-8" ); map.put( "css", "text/css; charset=utf-8" ); + map.put( "xml", "text/xml; charset=utf-8" ); map.put( "js", "application/javascript; charset=utf-8" ); map.put( "json", "application/json; charset=utf-8" ); map.put( "mp4", "video/mp4" ); map.put( "jpg", "image/jpeg" ); map.put( "jpeg", "image/jpeg" ); map.put( "png", "image/png" ); + map.put( "gif", "image/gif" ); + map.put( "pdf", "application/pdf" ); // add more as need }