lib/link_thumbnailer/processor.rb in link_thumbnailer-2.2.2 vs lib/link_thumbnailer/processor.rb in link_thumbnailer-2.2.3

- old
+ new

@@ -34,11 +34,11 @@ raise ::LinkThumbnailer::BadUriFormat unless valid_url_format? yield if block_given? end def set_http_headers - http.headers['User-Agent'] = user_agent - http.headers['Accept-Encoding'] = 'none' + http.headers['User-Agent'] = user_agent + http.override_headers['Accept-Encoding'] = 'none' end def set_http_options http.verify_mode = ::OpenSSL::SSL::VERIFY_NONE unless ssl_required? http.open_timeout = http_timeout