summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Feed.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Feed.pm b/lib/Feed.pm
index 09e9dd9..1791b27 100644
--- a/lib/Feed.pm
+++ b/lib/Feed.pm
@@ -91,6 +91,7 @@ sub build_user_agent {
$agent_id //= 'curl/7.26.0';
require IO::Socket::SSL;
+ require HTTP::Headers;
return LWP::UserAgent->new(
agent => $agent_id,
@@ -101,7 +102,7 @@ sub build_user_agent {
timeout => 30,
cookie_jar => {},
protocols_allowed => [ 'http', 'https', 'file' ],
- default_headers => HTTP::Request->new(
+ default_headers => HTTP::Headers->new(
Accept => '*/*',
),
);