We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcc46ce commit 38dbf2eCopy full SHA for 38dbf2e
t/apache.t
@@ -8,10 +8,19 @@ use LWP::UserAgent;
8
my $ua = LWP::UserAgent->new();
9
plan skip_all => "Not online" unless $ua->is_online;
10
11
-plan tests => 2;
+plan tests => 4;
12
+
13
my $res = $ua->simple_request(HTTP::Request->new(GET => "https://www.apache.org"));
14
15
ok($res->is_success);
16
like($res->content, qr/Apache Software Foundation/);
17
18
+# test for RT #81948
19
+my $warn = '';
20
+$SIG{__WARN__} = sub { $warn = shift };
21
+$ua = LWP::UserAgent->new( ssl_opts => {verify_hostname => 0} );
22
+$res = $ua->simple_request(HTTP::Request->new(GET => "https://www.apache.org"));
23
+ok($res->is_success);
24
+is($warn, '', "no warning seen");
25
26
$res->dump(prefix => "# ");
0 commit comments