Skip to content

Commit

Permalink
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jooby/src/main/java/io/jooby/MediaType.java
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,12 @@ static boolean matches(@Nonnull String expected, @Nonnull String contentType) {
return new MediaType("application/x-cabinet", null);
case "gif":
return new MediaType("image/gif", null);
case "docx":
return new MediaType("application/vnd.openxmlformats-officedocument.wordprocessingml.document", null);
case "xlsx":
return new MediaType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", null);
case "pptx":
return new MediaType("application/vnd.openxmlformats-officedocument.presentationml.presentation", null);
default:
return octetStream;
}
Expand Down

0 comments on commit a6c0c51

Please sign in to comment.