Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: mime type string deprecation #655

Merged
merged 2 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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