From 77548ca0694c9e243e3dfc52a3baace5d7a7e464 Mon Sep 17 00:00:00 2001 From: Slaven Rezic Date: Sun, 2 Jul 2017 11:00:16 +0200 Subject: [PATCH] fix online checks (RT #114154, RT #122310) --- lib/LWP/Online.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/LWP/Online.pm b/lib/LWP/Online.pm index 1a7e3f9..5204d5f 100644 --- a/lib/LWP/Online.pm +++ b/lib/LWP/Online.pm @@ -153,9 +153,9 @@ BEGIN { # The regex are case-sensitive to at least # deal with the "couldn't get site.com case". 'http://www.msftncsi.com/ncsi.txt' => sub { $_ eq 'Microsoft NCSI' }, - 'http://google.com/' => sub { /About Google/ }, - 'http://yahoo.com/' => sub { /Yahoo!/ }, - 'http://amazon.com/' => sub { /Amazon/ and /Cart/ }, + 'http://google.com/' => sub { /Google/ }, + 'http://yahoo.com/' => sub { /Yahoo/ }, + 'http://ebay.com/' => sub { /ebay/i }, 'http://cnn.com/' => sub { /CNN/ }, ); } -- 2.1.4