Mercurial Hosting > luan
comparison src/goodjava/webserver/handlers/ContentTypeHandler.java @ 1732:8a6e48371c66
content type woff
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 12 Sep 2022 19:13:13 -0400 |
parents | fe611f6e3c28 |
children | 02d2a6c3bc6f |
comparison
equal
deleted
inserted
replaced
1731:842a0e0fd8c5 | 1732:8a6e48371c66 |
---|---|
30 map.put( "jpg", "image/jpeg" ); | 30 map.put( "jpg", "image/jpeg" ); |
31 map.put( "jpeg", "image/jpeg" ); | 31 map.put( "jpeg", "image/jpeg" ); |
32 map.put( "png", "image/png" ); | 32 map.put( "png", "image/png" ); |
33 map.put( "gif", "image/gif" ); | 33 map.put( "gif", "image/gif" ); |
34 map.put( "pdf", "application/pdf" ); | 34 map.put( "pdf", "application/pdf" ); |
35 map.put( "woff", "font/woff" ); | |
35 // add more as need | 36 // add more as need |
36 } | 37 } |
37 | 38 |
38 public static String getExtension(String path) { | 39 public static String getExtension(String path) { |
39 int iSlash = path.lastIndexOf('/'); | 40 int iSlash = path.lastIndexOf('/'); |