lib/httpx/plugins/basic_authentication.rb in httpx-0.6.1 vs lib/httpx/plugins/basic_authentication.rb in httpx-0.6.2

- old
+ new

@@ -13,10 +13,10 @@ klass.plugin(:authentication) end module InstanceMethods def basic_authentication(user, password) - authentication("Basic #{Base64.strict_encode64("#{URI.escape(user)}:#{URI.escape(password)}")}") + authentication("Basic #{Base64.strict_encode64("#{user}:#{password}")}") end alias_method :basic_auth, :basic_authentication end end register_plugin :basic_authentication, BasicAuthentication