mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Fix to consider all variations of HTML types
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user