lib/rspec/request_describer.rb in rspec-request_describer-0.0.8 vs lib/rspec/request_describer.rb in rspec-request_describer-0.0.9

- old
+ new

@@ -25,10 +25,10 @@ let(:send_request) do send method, path, request_body, env end let(:request_body) do - if headers["Content-Type"] == "application/json" + if headers.any? { |key, value| key.downcase == "content-type" && value == "application/json" } params.to_json else params end end