lib/pact/shared/request.rb in pact-support-0.3.0 vs lib/pact/shared/request.rb in pact-support-0.3.1
- old
+ new
@@ -40,11 +40,11 @@
def full_path
display_path + display_query
end
def content_type
- return nil unless specified?(:headers)
- headers['Content-Type']
+ return nil unless specified?(:headers) && headers['Content-Type']
+ Pact::Reification.from_term(headers['Content-Type'])
end
def content_type? content_type
self.content_type == content_type
end
\ No newline at end of file