Permalink
Browse files

[INTEGRATION] Merge branch 'user-agent' into 'upstream/master'

* user-agent:
  User-Agent http header to api calls
  • Loading branch information...
2 parents aa3206d + d06e57b commit 255b7f494f0bfcdf421026a509e6b56aab7277ff @loniszczuk loniszczuk committed Jan 26, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/indextank.rb
View
@@ -17,6 +17,7 @@ def self.setup_connection(url, &block)
end
@uri = URI.parse(url)
@conn.basic_auth @uri.user,@uri.password
+ @conn.headers['User-Agent'] = "IndexTank-Ruby/#{VERSION}"
@conn
end
end

0 comments on commit 255b7f4

Please sign in to comment.