summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xhttpd/cgi-bin/check7
1 files changed, 5 insertions, 2 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check
index a03c191..dd403b3 100755
--- a/httpd/cgi-bin/check
+++ b/httpd/cgi-bin/check
@@ -14,7 +14,7 @@
# This source code is available under the license at:
# http://www.w3.org/Consortium/Legal/copyright-software
#
-# $Id: check,v 1.628 2009-01-04 21:05:43 ville Exp $
+# $Id: check,v 1.629 2009-01-04 21:52:22 ville Exp $
#
# Disable buffering on STDOUT!
@@ -199,7 +199,7 @@ Directory not readable (permission denied): @_r
#
# Strings
- $VERSION = q$Revision: 1.628 $;
+ $VERSION = q$Revision: 1.629 $;
$VERSION =~ s/Revision: ([\d\.]+) /$1/;
#
@@ -848,6 +848,9 @@ sub html5_validate (\$) {
# Intentionally using direct header access instead of $req->last_modified
$req->header('Last-Modified', $File->{Modified}) if $File->{Modified};
+ # If not in debug mode, gzip the request (LWP >= 5.817)
+ eval { $req->encode("gzip"); } unless $File->{Opt}->{Debug};
+
my $res = $ua->request($req);
if (! $res->is_success()) {
$File->{'Error Flagged'} = TRUE;