From 3d12de14cc3d8f70ebee50361066838253246086 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Thu, 11 May 2017 13:01:10 +0200 Subject: [PATCH] add json/mp3/oga/svg filetypes those are needed for the noVNC upgrade svg: button images mp3/oga: bell sound of terminal json: language files Signed-off-by: Dominik Csapak --- PVE/APIServer/AnyEvent.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PVE/APIServer/AnyEvent.pm b/PVE/APIServer/AnyEvent.pm index 0276619..5479f9b 100755 --- a/PVE/APIServer/AnyEvent.pm +++ b/PVE/APIServer/AnyEvent.pm @@ -274,15 +274,19 @@ my $file_extension_info = { css => { ct => 'text/css' }, html => { ct => 'text/html' }, js => { ct => 'application/javascript' }, + json => { ct => 'application/json' }, png => { ct => 'image/png' , nocomp => 1 }, ico => { ct => 'image/x-icon', nocomp => 1}, gif => { ct => 'image/gif', nocomp => 1}, + svg => { ct => 'image/svg+xml' }, jar => { ct => 'application/java-archive', nocomp => 1}, woff => { ct => 'application/font-woff', nocomp => 1}, woff2 => { ct => 'application/font-woff2', nocomp => 1}, ttf => { ct => 'application/font-snft', nocomp => 1}, pdf => { ct => 'application/pdf', nocomp => 1}, epub => { ct => 'application/epub+zip', nocomp => 1}, + mp3 => { ct => 'audio/mpeg', nocomp => 1}, + oga => { ct => 'audio/ogg', nocomp => 1}, }; sub send_file_start { -- 2.39.2