vendor/bundle/ruby/2.1.0/gems/httpauth-0.2.1/lib/httpauth/basic.rb
def unpack_authorization(authorization)
        d = authorization.split ' '
        fail(ArgumentError, 'HTTPAuth::Basic can only unpack Basic Authentication headers') unless d[0] == 'Basic'
        Base64.decode64(d[1]).split(':')[0..1]
      end
# Unpacks the HTTP Basic 'Authorization' credential header
#
# * <tt>authorization</tt>: The contents of the Authorization header
# * Returns a list with two items: the username and password
Unpacks the HTTP Basic 'Authorization' credential header
authorization: The contents of the Authorization header
Returns a list with two items: the username and password
Unpacks the HTTP Basic ' Authorization ' credential header authorization : The contents of the Authorization header Returns a list with two items : the username and password
def unpack_authorization(authorization)
        d = authorization.split ' '
        fail(ArgumentError, 'HTTPAuth::Basic can only unpack Basic Authentication headers') unless d[0] == 'Basic'
        Base64.decode64(d[1]).split(':')[0..1]
      end
def unpack_authorization ( authorization ) d = authorization . split ' ' fail ( ArgumentError , 'HTTPAuth::Basic can only unpack Basic Authentication headers' ) unless d [ 0 ] == 'Basic' Base64 . decode64 ( d [ 1 ] ) . split ( ':' ) [ 0 .. 1 ] end
Unpacks the HTTP Basic 'Authorization' credential header
 <tt>authorization</tt>: The contents of the Authorization header
 Returns a list with two items: the username and password
Unpacks the HTTP Basic ' Authorization ' credential header <tt > authorization< / tt > : The contents of the Authorization header Returns a list with two items : the username and password
authorization