lib/pact/shared/request.rb in pact-support-0.1.0 vs lib/pact/shared/request.rb in pact-support-0.1.1
- old
+ new
@@ -41,11 +41,15 @@
def full_path
display_path + display_query
end
def content_type
- return nil if headers.is_a? self.class.key_not_found.class
+ return nil unless specified?(:headers)
headers['Content-Type']
+ end
+
+ def content_type? content_type
+ self.content_type == content_type
end
def modifies_resource?
http_method_modifies_resource? && body_specified?
end
\ No newline at end of file