Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use #load_middleware since autoload was removed

  • Loading branch information...
commit 0d48d70c3f688213a53b92650e9760bb93f4e4a1 1 parent 55c03ad
risk danger olson authored
2  lib/faraday/request/basic_authentication.rb
View
@@ -1,7 +1,7 @@
require 'base64'
module Faraday
- class Request::BasicAuthentication < Request::Authorization
+ class Request::BasicAuthentication < Request.load_middleware(:authorization)
# Public
def self.header(login, pass)
value = Base64.encode64([login, pass].join(':'))
2  lib/faraday/request/token_authentication.rb
View
@@ -1,5 +1,5 @@
module Faraday
- class Request::TokenAuthentication < Request::Authorization
+ class Request::TokenAuthentication < Request.load_middleware(:authorization)
# Public
def self.header(token, options = nil)
options ||= {}
Please sign in to comment.
Something went wrong with that request. Please try again.