diff options
author | hugo <hugo@localhost> | 2000-07-13 16:10:35 +0000 |
---|---|---|
committer | hugo <hugo@localhost> | 2000-07-13 16:10:35 +0000 |
commit | a54a3337449711b40e84ff118300837fe4bd2593 (patch) | |
tree | 740f5bc31e135032b98bda7a035bd59737803b9c | |
parent | 7b1a41f725366d51cf050011f0b82a4c3a780c83 (diff) | |
download | markup-validator-a54a3337449711b40e84ff118300837fe4bd2593.zip markup-validator-a54a3337449711b40e84ff118300837fe4bd2593.tar.gz markup-validator-a54a3337449711b40e84ff118300837fe4bd2593.tar.bz2 |
Added a test in the case when the encoding would be identity
-rwxr-xr-x | httpd/cgi-bin/checklink.pl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/httpd/cgi-bin/checklink.pl b/httpd/cgi-bin/checklink.pl index fa68b49..e14755e 100755 --- a/httpd/cgi-bin/checklink.pl +++ b/httpd/cgi-bin/checklink.pl @@ -5,7 +5,7 @@ # (c) 1999-2000 World Wide Web Consortium # based on Renaud Bruyeron's checklink.pl # -# $Id: checklink.pl,v 2.56 2000-07-12 19:14:31 hugo Exp $ +# $Id: checklink.pl,v 2.57 2000-07-13 16:10:35 hugo Exp $ # # This program is licensed under the W3C(r) License: # http://www.w3.org/Consortium/Legal/copyright-software @@ -31,7 +31,7 @@ $| = 1; # Version info my $PROGRAM = 'W3C checklink'; -my $VERSION = q$Revision: 2.56 $ . '(c) 1999-2000 W3C'; +my $VERSION = q$Revision: 2.57 $ . '(c) 1999-2000 W3C'; my $REVISION; ($REVISION = $VERSION) =~ s/Revision: (\d+\.\d+) .*/$1/; # Different options specified by the user @@ -527,7 +527,8 @@ sub get_document() { if (! ($response->header('Content-Type') =~ m/text\/html/)) { $failed_reason = "Content-Type is '". $response->header('Content-Type')."'"; - } elsif ($response->header('Content-Encoding')) { + } elsif ($response->header('Content-Encoding') + && ($response->header('Content-Encoding') ne 'identity')) { $failed_reason = "Content-Encoding is '". $response->header('Content-encoding')."'"; } |