lib/miteru/http_client.rb in miteru-0.14.2 vs lib/miteru/http_client.rb in miteru-0.14.3
- old
+ new
@@ -16,10 +16,10 @@
ctx.verify_mode = OpenSSL::SSL::VERIFY_NONE
@ssl_context = ctx
end
def download(url, destination)
- down = Down::Http.new(default_options) { |client| client.headers(default_headers) }
+ down = Down::Http.new(**default_options) { |client| client.headers(**default_headers) }
down.download(url, destination: destination)
destination
end
def head(url, options = {})