lib/elasticsearch/transport/transport/http/curb.rb in elasticsearch-transport-0.4.11 vs lib/elasticsearch/transport/transport/http/curb.rb in elasticsearch-transport-1.0.0.rc1

- old
+ new

@@ -26,15 +26,10 @@ else raise ArgumentError, "Unsupported HTTP method: #{method}" end connection.connection.http(method.to_sym) - headers = {} - headers['content-type'] = 'application/json' if connection.connection.header_str =~ /\/json/ - - Response.new connection.connection.response_code, - connection.connection.body_str, - headers + Response.new connection.connection.response_code, connection.connection.body_str end end # Builds and returns a collection of connections. #