From 22f5939bec9adce532cfa64a5d86b573761d62c8 Mon Sep 17 00:00:00 2001 From: dakkar Date: Thu, 27 Oct 2016 15:56:19 +0000 Subject: fix default_headers for UA --- lib/Feed.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 => '*/*', ), ); -- cgit v1.2.3