lib/webmock/request_signature.rb in webmock-3.16.1 vs lib/webmock/request_signature.rb in webmock-3.16.2

- old
+ new

@@ -33,14 +33,14 @@ self.to_s == other.to_s end alias == eql? def url_encoded? - !!(headers&.fetch('Content-Type', nil)&.start_with?('application/x-www-form-urlencoded')) + !!(headers && headers.fetch('Content-Type', "").start_with?('application/x-www-form-urlencoded')) end def json_headers? - !!(headers&.fetch('Content-Type', nil)&.start_with?('application/json')) + !!(headers && headers.fetch('Content-Type', "").start_with?('application/json')) end private def assign_options(options)