lib/oauthenticator/parse_authorization.rb in oauthenticator-1.3.4 vs lib/oauthenticator/parse_authorization.rb in oauthenticator-1.3.5

- old
+ new

@@ -31,10 +31,10 @@ # @raise [OAuthenticator::DuplicatedParameters] if the header contains multiple instances of the same param def parse_authorization(header) header = header.to_s scanner = StringScanner.new(header) auth_parse_error = proc { |message| raise ParseError.new(message, {'Authorization' => [message]}) } - scanner.scan(/OAuth\s*/i) || auth_parse_error.call("Authorization scheme is not OAuth - recieved: #{header}") + scanner.scan(/OAuth\s*/i) || auth_parse_error.call("Authorization scheme is not OAuth - received: #{header}") attributes = {} while scanner.scan(/(\w+)="([^"]*)"\s*(,?)\s*/) key = scanner[1] value = scanner[2] comma_follows = !scanner[3].empty?