Skip to content

Commit

Permalink
Merge pull request #655 from avk/main
Browse files Browse the repository at this point in the history
fix: mime type string deprecation
  • Loading branch information
flavorjones authored Oct 2, 2024
2 parents 4724780 + 5b74852 commit 2ae412a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/mechanize/pluggable_parsers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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] ||
Expand Down
2 changes: 1 addition & 1 deletion mechanize.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2ae412a

Please sign in to comment.