Permalink
Browse files

use #load_middleware since autoload was removed

  • Loading branch information...
1 parent 55c03ad commit 0d48d70c3f688213a53b92650e9760bb93f4e4a1 @technoweenie committed Dec 28, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/faraday/request/basic_authentication.rb
  2. +1 −1 lib/faraday/request/token_authentication.rb
@@ -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(':'))
@@ -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 ||= {}

0 comments on commit 0d48d70

Please sign in to comment.