URI 1.03 fails selftest

Ben Laurie (ben@algroup.co.uk)
Tue, 20 Jul 1999 15:47:50 +0100


The following patch fixes it:

--- t/heuristic.t.orig  Tue Jul 20 14:46:56 1999
+++ t/heuristic.t       Tue Jul 20 14:45:14 1999
@@ -40,7 +40,7 @@
 if (gethostbyname("www.netscape.com")) {
     # DNS probably work, lets run test 6..8
 
-    $URI::Heuristic::MY_COUNTRY = "no";
+    $URI::Heuristic::MY_COUNTRY = undef;
     print "not " unless uf_urlstr("perl/camel.gif") eq
"http://www.perl.com/camel.gif";
     print "ok 6\n";

"no" is Norway, of course...

Cheers,

Ben.

--
http://www.apache-ssl.org/ben.html

"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
     - Indira Gandhi