Permalink
Browse files

User-Agent http header to api calls

  • Loading branch information...
loniszczuk committed Jan 21, 2011
1 parent aa3206d commit d06e57b5e72a8b8e9591e4030c61bb36e304639b
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 d06e57b

Please sign in to comment.