W3C home > Mailing lists > Public > www-validator-cvs@w3.org > February 2008

perl/modules/W3C/LinkChecker/bin checklink,4.96,4.97

From: Ville Skytta via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 14 Feb 2008 23:56:45 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1JPnwb-0006DL-9Z@lionel-hutz.w3.org>

Update of /sources/public/perl/modules/W3C/LinkChecker/bin
In directory hutz:/tmp/cvs-serv23833

Modified Files:
	checklink 
Log Message:
Mimic LWP by setting the "Client-Warning: Internal response" to "IP disallowed" internal responses.

Index: checklink
===================================================================
RCS file: /sources/public/perl/modules/W3C/LinkChecker/bin/checklink,v
retrieving revision 4.96
retrieving revision 4.97
diff -u -d -r4.96 -r4.97
--- checklink	14 Feb 2008 23:45:38 -0000	4.96
+++ checklink	14 Feb 2008 23:56:42 -0000	4.97
@@ -159,6 +159,7 @@
   if ($iptype && $iptype ne 'PUBLIC') {
     $resp = HTTP::Response->new(403,
     'Checking non-public IP address disallowed by link checker configuration');
+    $resp->header('Client-Warning', 'Internal response');
   }
   return $resp;
 }
Received on Thursday, 14 February 2008 23:57:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:00 GMT