Browse files

add a user agent string to deprecated interface

  • Loading branch information...
1 parent b195137 commit 1ee6ab6d76330bf3b4e150e0601585f794d099d5 @andrewmbenton andrewmbenton committed Jan 21, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/twilio-ruby/rest/client.rb
View
1 lib/twilio-ruby/rest/client.rb
@@ -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

0 comments on commit 1ee6ab6

Please sign in to comment.