[yew-devel] [PATCH http-server 1/1] api server: add 'wasm' as valid extension

Dominik Csapak d.csapak at proxmox.com
Thu Jul 10 12:28:11 CEST 2025


otherwise the server won't serve wasm files to the client.

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 8f2c3ff..b00e074 100644
--- a/src/PVE/APIServer/AnyEvent.pm
+++ b/src/PVE/APIServer/AnyEvent.pm
@@ -431,6 +431,7 @@ my $file_extension_info = {
     mp3 => { ct => 'audio/mpeg', nocomp => 1 },
     oga => { ct => 'audio/ogg', nocomp => 1 },
     tgz => { ct => 'application/x-compressed-tar', nocomp => 1 },
+    wasm => { ct => 'application/wasm' },
 };
 
 sub send_file_start {
-- 
2.39.5





More information about the yew-devel mailing list