lib/httpx/plugins/authentication.rb in httpx-0.6.7 vs lib/httpx/plugins/authentication.rb in httpx-0.7.0
- old
+ new
@@ -9,10 +9,10 @@
# https://gitlab.com/honeyryderchuck/httpx/wikis/Authentication#authentication
#
module Authentication
module InstanceMethods
def authentication(token)
- headers("authorization" => token)
+ with(headers: { "authorization" => token })
end
end
end
register_plugin :authentication, Authentication
end