lib/aranha/parsers/source_address/http_get.rb in aranha-parsers-0.21.0 vs lib/aranha/parsers/source_address/http_get.rb in aranha-parsers-0.22.0
- old
+ new
@@ -38,9 +38,10 @@
@final_url
end
def content
request = ::EacEnvs::Http::Request.new.url(url).retry(true).follow_redirect(true)
+ .header('user-agent', self.class.name)
request.response.body_str
rescue ::EacEnvs::Http::Error => e
raise ::Aranha::Parsers::SourceAddress::FetchContentError, e.message, request
end