lib/attune/client.rb in attune-1.0.5 vs lib/attune/client.rb in attune-1.0.6
- old
+ new
@@ -65,11 +65,9 @@
end
end
def request(http_method, path, opts)
adapter_method = adapter.method(http_method.downcase)
- headers = {'Content-Type' => 'application/json' }
- headers.merge! opts[:headers] if opts[:headers]
adapter_method.call do |req|
req.url path
req.headers['Content-Type'] = 'application/json'
req.headers.merge! opts[:headers] if opts[:headers]
req.params = opts[:params] if opts[:params]