diff --git a/lib/mechanize/pluggable_parsers.rb b/lib/mechanize/pluggable_parsers.rb index 21a90b06..44af507a 100644 --- a/lib/mechanize/pluggable_parsers.rb +++ b/lib/mechanize/pluggable_parsers.rb @@ -104,7 +104,7 @@ def parser content_type return parser if parser - mime_type = MIME::Type.new content_type + mime_type = MIME::Type.new "content-type" => content_type parser = @parsers[mime_type.to_s] || @parsers[mime_type.simplified] || diff --git a/mechanize.gemspec b/mechanize.gemspec index beca19e3..a0bdf345 100644 --- a/mechanize.gemspec +++ b/mechanize.gemspec @@ -56,7 +56,7 @@ Gem::Specification.new do |spec| spec.add_runtime_dependency("addressable", "~> 2.8") spec.add_runtime_dependency("domain_name", ">= 0.5.20190701", "~> 0.5") spec.add_runtime_dependency("http-cookie", ">= 1.0.3", "~> 1.0") - spec.add_runtime_dependency("mime-types", "~> 3.0") + spec.add_runtime_dependency("mime-types", "~> 3.3") spec.add_runtime_dependency("net-http-digest_auth", ">= 1.4.1", "~> 1.4") # careful! some folks are relying on older versions of net-http-persistent