Skip to content

Commit b274cc6

Browse files
oaldersgenio
authored andcommitted
Remove circular dependency on LWP::RobotUA introduced in 6.02 (GH#29)
1 parent 5dd0bc2 commit b274cc6

3 files changed

Lines changed: 6 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 on LWP::RobotUA introduced in 6.02 (GH#29)
5+
(Olaf Alders)
46

57
6.03 2019-04-01 20:56:38Z
68
- Remove circular dependency with LWP::UserAgent introduced in 6.02 (GH#27)

t/robot/ua-get.t

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
use Test::Needs 'LWP::RobotUA';
2+
13
if($^O eq "MacOS") {
24
print "1..0\n";
35
exit(0);
@@ -64,7 +66,6 @@ sub url {
6466

6567
print "Will access HTTP server at $base\n";
6668

67-
require LWP::RobotUA;
6869
require HTTP::Request;
6970
$ua = new LWP::RobotUA 'lwp-spider/0.1', 'gisle@aas.no';
7071
$ua->delay(0.05); # rather quick robot

t/robot/ua.t

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
use Test::Needs 'LWP::RobotUA';
2+
13
if($^O eq "MacOS") {
24
print "1..0\n";
35
exit(0);
@@ -64,7 +66,6 @@ sub url {
6466

6567
print "Will access HTTP server at $base\n";
6668

67-
require LWP::RobotUA;
6869
require HTTP::Request;
6970
$ua = new LWP::RobotUA 'lwp-spider/0.1', 'gisle@aas.no';
7071
$ua->delay(0.05); # rather quick robot

0 commit comments

Comments
 (0)