- From: Mercurial notifier <nobody@w3.org>
- Date: Thu, 05 Aug 2010 14:47:17 +0000
- To: link-checker updates <www-validator-cvs@w3.org>
changeset: 270:0b2d23ae16d7 user: ville date: Fri Jan 30 19:57:10 2009 +0000 files: bin/checklink description: Lower q-value of application/vnd.wap.xhtml+xml in Accept header to less than 1. diff -r 869f6333775e -r 0b2d23ae16d7 bin/checklink --- a/bin/checklink Thu Jan 29 23:03:10 2009 +0000 +++ b/bin/checklink Fri Jan 30 19:57:10 2009 +0000 @@ -5,7 +5,7 @@ # (c) 1999-2009 World Wide Web Consortium # based on Renaud Bruyeron's checklink.pl # -# $Id: checklink,v 4.135 2009-01-10 21:27:38 ville Exp $ +# $Id: checklink,v 4.136 2009-01-30 19:57:10 ville Exp $ # # This program is licensed under the W3C(r) Software License: # http://www.w3.org/Consortium/Legal/copyright-software @@ -267,7 +267,7 @@ $PROGRAM = 'W3C-checklink'; $VERSION = '4.4'; $REVISION = sprintf('version %s (c) 1999-2009 W3C', $VERSION); - my ($cvsver) = q$Revision: 4.135 $ =~ /(\d+[\d\.]*\.\d+)/; + my ($cvsver) = q$Revision: 4.136 $ =~ /(\d+[\d\.]*\.\d+)/; $AGENT = sprintf('%s/%s [%s] %s', $PROGRAM, $VERSION, $cvsver, (W3C::UserAgent::USE_ROBOT_UA @@ -281,9 +281,9 @@ } if MP2(); my @content_types = - qw(application/xhtml+xml text/html application/vnd.wap.xhtml+xml); + qw(application/xhtml+xml text/html application/vnd.wap.xhtml+xml;q=0.6); $Accept = join(', ', @content_types, '*/*;q=0.5'); - my $re = join('|', map(quotemeta, @content_types)); + my $re = join('|', map { s/;.*// ; quotemeta } @content_types); $ContentTypes = qr{\b(?:$re)\b}io; #
Received on Thursday, 5 August 2010 14:47:31 UTC