From 2caa8c4a3454de40b46b43ec9d080e2ca4fde9e3 Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 27 Apr 2023 03:19:33 -0400 Subject: [PATCH] Add webp and svg to the default file_types (#1575) --- config.example.json | 4 +++- drogon_ctl/templates/config.csp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/config.example.json b/config.example.json index 38d43a6e..f8f8bd2e 100644 --- a/config.example.json +++ b/config.example.json @@ -145,7 +145,9 @@ "xap", "apk", "cur", - "xml" + "xml", + "webp", + "svg" ], // mime: A dictionary that extends the internal MIME type support. Maps extensions into new MIME types // note: This option only adds MIME to the sever. `file_types` above have to be set for the server to serve them. diff --git a/drogon_ctl/templates/config.csp b/drogon_ctl/templates/config.csp index 1e520c8d..14213a9e 100644 --- a/drogon_ctl/templates/config.csp +++ b/drogon_ctl/templates/config.csp @@ -145,7 +145,9 @@ "xap", "apk", "cur", - "xml" + "xml", + "svg", + "webp" ], // mime: A dictionary that extends the internal MIME type support. Maps extensions into new MIME types // note: This option only adds MIME to the sever. `file_types` above have to be set for the server to serve them.