lib/httpx/plugins/digest_authentication.rb in httpx-0.12.0 vs lib/httpx/plugins/digest_authentication.rb in httpx-0.13.0
- old
+ new
@@ -27,10 +27,10 @@
require "digest"
end
module InstanceMethods
def digest_authentication(user, password)
- branch(default_options.with_digest(Digest.new(user, password)))
+ with(digest: Digest.new(user, password))
end
alias_method :digest_auth, :digest_authentication
def request(*args, **options)