W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2010

link-checker commit: ->base() returns a URI, don't create another one.

From: Mercurial notifier <nobody@w3.org>
Date: Thu, 05 Aug 2010 14:47:12 +0000
To: link-checker updates <www-validator-cvs@w3.org>
Message-Id: <E1Oh1iy-000609-Mj@blinky.w3.org>
changeset:   217:8cd754dbbe4c
user:        ville
date:        Sun Feb 10 13:20:11 2008 +0000
files:       bin/checklink
description:
->base() returns a URI, don't create another one.


diff -r 46aad32138b9 -r 8cd754dbbe4c bin/checklink
--- a/bin/checklink	Sun Feb 10 13:18:01 2008 +0000
+++ b/bin/checklink	Sun Feb 10 13:20:11 2008 +0000
@@ -5,7 +5,7 @@
 # (c) 1999-2008 World Wide Web Consortium
 # based on Renaud Bruyeron's checklink.pl
 #
-# $Id: checklink,v 4.87 2008-02-10 13:18:01 ville Exp $
+# $Id: checklink,v 4.88 2008-02-10 13:20:11 ville Exp $
 #
 # This program is licensed under the W3C(r) Software License:
 #       http://www.w3.org/Consortium/Legal/copyright-software
@@ -244,7 +244,7 @@
   $PROGRAM     = 'W3C-checklink';
   $VERSION     = '4.3';
   $REVISION    = sprintf('version %s (c) 1999-2008 W3C', $VERSION);
-  my ($cvsver) = q$Revision: 4.87 $ =~ /(\d+[\d\.]*\.\d+)/;
+  my ($cvsver) = q$Revision: 4.88 $ =~ /(\d+[\d\.]*\.\d+)/;
   $AGENT       = sprintf('%s/%s [%s] %s',
                          $PROGRAM, $VERSION, $cvsver, LWP::RobotUA->_agent());
 
@@ -1082,7 +1082,7 @@
   }
 
   # What is the URI of the resource that we are processing by the way?
-  my $base_uri = URI->new($response->base());
+  my $base_uri = $response->base();
   my $request_uri = URI->new($response->request->url);
   $response->{absolute_uri} = $request_uri->abs($base_uri);
 
Received on Thursday, 5 August 2010 14:47:21 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:44 UTC