diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2022-05-09 21:36:44 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2022-05-11 23:51:48 -0400 |
commit | 85b5988dc71d8c01b60423ec1a7dbb03830365d0 (patch) | |
tree | 1761ad5c06a296d3eb1ea8026265cbafa7d7fa31 /doc | |
parent | dbfee2a2992f4c7b1c7e8b8746eec91941c50515 (diff) | |
download | lighttpd-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-x | doc/scripts/create-mime.conf.pl | 4 |
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"; |