lib/elastics/http_clients/patron.rb in elastics-client-1.0.10 vs lib/elastics/http_clients/patron.rb in elastics-client-1.1.0
- old
+ new
@@ -16,10 +16,10 @@
private
def session
Thread.current[:elastics_patron_session] ||= begin
sess = ::Patron::Session.new
- sess.headers['User-Agent'] = "elastics-#{Elastics::VERSION}"
+ sess.headers['User-Agent'] = "elastics-client"
sess.base_url = base_uri
sess
end
end