]> git.proxmox.com Git - pve-manager.git/blobdiff - PVE/HTTPServer.pm
depend on pve-docs package
[pve-manager.git] / PVE / HTTPServer.pm
index a96518af52fb7616b428c11837b26d6a72fbc102..fbf8cc53c2e7592a27ad797724b70b9976b39f5d 100755 (executable)
@@ -370,6 +370,12 @@ sub send_file_start {
            } elsif ($filename =~ m/\.ttf$/) {
                $ct = 'application/font-snft';
                $nocomp = 1;
+           } elsif ($filename =~ m/\.pdf$/) {
+               $ct = 'application/pdf';
+               $nocomp = 1;
+           } elsif ($filename =~ m/\.epub$/) {
+               $ct = 'application/epub+zip';
+               $nocomp = 1;
            } else {
                die "unable to detect content type";
            }