lib/link_thumbnailer/processor.rb in link_thumbnailer-2.2.1 vs lib/link_thumbnailer/processor.rb in link_thumbnailer-2.2.2
- old
+ new
@@ -34,10 +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['User-Agent'] = user_agent
+ http.headers['Accept-Encoding'] = 'none'
end
def set_http_options
http.verify_mode = ::OpenSSL::SSL::VERIFY_NONE unless ssl_required?
http.open_timeout = http_timeout