[pve-devel] [PATCH http-server] add gz to supported file extensions
Dominik Csapak
d.csapak at proxmox.com
Wed Aug 6 10:21:49 CEST 2025
useful when we want to deliver pre-compressed files e.g. for wasm
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
src/PVE/APIServer/AnyEvent.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/PVE/APIServer/AnyEvent.pm b/src/PVE/APIServer/AnyEvent.pm
index a5f6681..59bc184 100644
--- a/src/PVE/APIServer/AnyEvent.pm
+++ b/src/PVE/APIServer/AnyEvent.pm
@@ -431,6 +431,7 @@ my $file_extension_info = {
tgz => { ct => 'application/x-compressed-tar', nocomp => 1 },
wasm => { ct => 'application/wasm' },
mo => { ct => 'application/x-gettext-translation' },
+ gz => { ct => 'application/gzip', nocomp => 1 },
};
sub send_file_start {
--
2.39.5
More information about the pve-devel
mailing list