lib/aitch/response_parser/json_parser.rb in aitch-1.2.0 vs lib/aitch/response_parser/json_parser.rb in aitch-1.2.1
- old
+ new
@@ -12,10 +12,10 @@
def self.type
:json
end
def self.match?(content_type)
- content_type =~ /json/
+ content_type.include?("json")
end
def self.load(source)
engine.load(source.to_s)
end