Fix to consider all variations of HTML types

This commit is contained in:
iliajie
2023-05-17 11:53:06 +03:00
parent d5a3eebe85
commit 953c4ed020

View File

@@ -84,7 +84,7 @@ if ($ENV{'PATH_INFO'}) {
print "Content-length: $st[7]\n";
print "X-Content-Type-Options: nosniff\n";
print "Content-type: $type\n\n";
my $dtype = $type =~ /text\/html|xml/i;
my $dtype = $type =~ /html|xml/i;
my $bsize =
$dtype ? $st[7] : &get_buffer_size_binary();
while(read(FILE, $buffer, $bsize)) {