[pve-devel] applied [PATCH http-server] add json/mp3/oga/svg filetypes
Wolfgang Bumiller
w.bumiller at proxmox.com
Wed May 24 13:11:26 CEST 2017
On Thu, May 11, 2017 at 01:01:10PM +0200, Dominik Csapak wrote:
> those are needed for the noVNC upgrade
>
> svg: button images
> mp3/oga: bell sound of terminal
> json: language files
>
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
> PVE/APIServer/AnyEvent.pm | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/PVE/APIServer/AnyEvent.pm b/PVE/APIServer/AnyEvent.pm
> index b2d58c5..b88cd30 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.11.0
More information about the pve-devel
mailing list