Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add a user agent string to deprecated interface

  • Loading branch information...
commit 1ee6ab6d76330bf3b4e150e0601585f794d099d5 1 parent b195137
Andrew Benton andrewmbenton authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/twilio-ruby/rest/client.rb
1  lib/twilio-ruby/rest/client.rb
View
@@ -191,6 +191,7 @@ def request(uri, method='POST', params={}) # :nodoc:
raise NotImplementedError, "HTTP #{method} not implemented"
end
+ req['User-Agent'] = 'twilio-ruby/deprecated'
req.basic_auth @account_sid, @auth_token
@last_request = req
@last_response = @connection.request req
Please sign in to comment.
Something went wrong with that request. Please try again.