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(login, pass) @headers['Authorization'] = 'Basic ' + ["#{login}:#{pass}"].pack('m').delete("\r\n") end |