]> git.proxmox.com Git - pve-manager.git/blobdiff - PVE/HTTPServer.pm
depend on pve-docs package
[pve-manager.git] / PVE / HTTPServer.pm
index d4462606f8d0df453ea56ef9a718a3178b2eb577..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";
            }
@@ -1446,6 +1452,11 @@ sub wait_end_loop {
        return;
     }
 
+    # fork and exit, so that parent starts a new worker
+    if (fork()) {
+       exit(0);
+    }
+
     # else we need to wait until all open connections gets closed
     my $w; $w = AnyEvent->timer (after => 1, interval => 1, cb => sub {
        eval {