[pve-devel] [PATCH http-server 2/2] add 'map' filetype to http-server

Dominik Csapak d.csapak at proxmox.com
Thu Nov 23 15:55:56 CET 2017


those files are used for javascript source maps
(useful for debugging purposes)

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 PVE/APIServer/AnyEvent.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/PVE/APIServer/AnyEvent.pm b/PVE/APIServer/AnyEvent.pm
index 494c659..1a67ab6 100755
--- a/PVE/APIServer/AnyEvent.pm
+++ b/PVE/APIServer/AnyEvent.pm
@@ -275,6 +275,7 @@ my $file_extension_info = {
     html  => { ct => 'text/html' },
     js    => { ct => 'application/javascript' },
     json  => { ct => 'application/json' },
+    map  => { ct => 'application/json' },
     png   => { ct => 'image/png' , nocomp => 1 },
     ico   => { ct => 'image/x-icon', nocomp => 1},
     gif   => { ct => 'image/gif', nocomp => 1},
-- 
2.11.0





More information about the pve-devel mailing list