Method: Papertrail::HttpClient#basic_auth

Defined in:
lib/papertrail/http_client.rb

#basic_auth(login, pass) ⇒ Object



53
54
55
# File 'lib/papertrail/http_client.rb', line 53

def basic_auth(, pass)
  @headers['Authorization'] = 'Basic ' + ["#{}:#{pass}"].pack('m').delete("\r\n")
end