diff options
author | Ville Skytt? <ville.skytta@iki.fi> | 2011-11-28 21:05:30 +0200 |
---|---|---|
committer | Ville Skytt? <ville.skytta@iki.fi> | 2011-11-28 21:05:30 +0200 |
commit | ff1a7658b535a1d1409a9ae77b2f35a1a67ad034 (patch) | |
tree | fdf7cb8ad37908c527e2ebd943306e3cc9591efc | |
parent | 4880eed011450f713413b9628b7241118c686889 (diff) | |
download | markup-validator-ff1a7658b535a1d1409a9ae77b2f35a1a67ad034.zip markup-validator-ff1a7658b535a1d1409a9ae77b2f35a1a67ad034.tar.gz markup-validator-ff1a7658b535a1d1409a9ae77b2f35a1a67ad034.tar.bz2 |
Trivial code cleanups.
-rwxr-xr-x | httpd/cgi-bin/check | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check index d2da0c0..0f5ce2a 100755 --- a/httpd/cgi-bin/check +++ b/httpd/cgi-bin/check @@ -1056,7 +1056,6 @@ sub html5_validate (\$) my @ct = ($ct => undef, charset => "UTF-8"); $ct = HTTP::Headers::Util::join_header_words(@ct); - $req->content_type($ct); $req->content(Encode::encode_utf8(join("\n", @{$File->{Content}}))); } else { @@ -1076,9 +1075,9 @@ sub html5_validate (\$) $ct = HTTP::Headers::Util::join_header_words(@ct); } - $req->content_type($ct); $req->content_ref(\$File->{Bytes}); } + $req->content_type($ct); $req->content_language($File->{ContentLang}) if $File->{ContentLang}; @@ -3325,12 +3324,11 @@ sub self_url_q } # Others - if ($q->param('doctype') and - not $q->param('doctype') =~ /(?:Inline|detect)/i) + if ($q->param('doctype') and $q->param('doctype') !~ /(?:Inline|detect)/i) { $thispage .= 'doctype=' . uri_escape($q->param('doctype')) . ';'; } - if ($q->param('charset') and not $q->param('charset') =~ /detect/i) { + if ($q->param('charset') and $q->param('charset') !~ /detect/i) { $thispage .= 'charset=' . uri_escape($q->param('charset')) . ';'; } |