Skip to content

Commit ca48322

Browse files
committed
Remove circular dependency with LWP::UserAgent
1 parent 1c4b7dc commit ca48322

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

Changes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Revision history for HTTP-Daemon
22

33
{{$NEXT}}
4+
- Remove circular dependency with LWP::UserAgent introduced in 6.02 (GH#27)
5+
(Olaf Alders)
46

57
6.02 2019-04-01 16:03:37Z
68
- Added a .mailmap to properly keep up with contributors to the dist.

t/local/http.t

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#!perl
2+
3+
use Test::Needs 'LWP::UserAgent';
4+
15
if ($^O eq "MacOS") {
26
print "1..0\n";
37
exit(0);
@@ -63,9 +67,8 @@ sub url {
6367

6468
print "Will access HTTP server at $base\n";
6569

66-
require LWP::UserAgent;
6770
require HTTP::Request;
68-
$ua = new LWP::UserAgent;
71+
$ua = LWP::UserAgent->new;
6972
$ua->agent("Mozilla/0.01 " . $ua->agent);
7073
$ua->from('gisle@aas.no');
7174

0 commit comments

Comments
 (0)