summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2022-05-09 21:36:44 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2022-05-11 23:51:48 -0400
commit85b5988dc71d8c01b60423ec1a7dbb03830365d0 (patch)
tree1761ad5c06a296d3eb1ea8026265cbafa7d7fa31 /doc
parentdbfee2a2992f4c7b1c7e8b8746eec91941c50515 (diff)
downloadlighttpd-git-85b5988dc71d8c01b60423ec1a7dbb03830365d0.tar.gz
[multiple] use preferred syntax for Content-Type
use preferred syntax for Content-Type: .../charset=... (match preferred syntax specified in upcoming HTTP spec revision)
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/scripts/create-mime.conf.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/scripts/create-mime.conf.pl b/doc/scripts/create-mime.conf.pl
index dcadf297..d38e996d 100755
--- a/doc/scripts/create-mime.conf.pl
+++ b/doc/scripts/create-mime.conf.pl
@@ -9,7 +9,7 @@ use strict;
my $verbose = 0;
foreach (@ARGV) { $verbose = 1 if ($_ eq "-v"); }
-# text/* subtypes to serve as "text/...; charset=utf-8"
+# text/* subtypes to serve as "text/...;charset=utf-8"
# text/html IS NOT INCLUDED: html has its own method for defining charset
# (<meta>), but the standards specify that content-type in HTTP wins over
# the setting in the html document.
@@ -147,7 +147,7 @@ sub add {
sub print_type {
my ($extension, $mimetype) = @_;
if ($mimetype =~ /^text\/(.*)$/) {
- $mimetype .= "; charset=utf-8" if $text_utf8{$1};
+ $mimetype .= ";charset=utf-8" if $text_utf8{$1};
}
print "\t\"${extension}\" => \"${mimetype}\",\n";