Skip to content

Commit

Permalink
Bump rack to remove ssl? override
Browse files Browse the repository at this point in the history
Rack 2.2+ already understands "wss" as being "ssl", so bumping the
requirement lets us remove this override and call to super.
  • Loading branch information
jhawthorn committed Jun 1, 2021
1 parent 43a0e55 commit 14688b5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Expand Up @@ -45,7 +45,7 @@ PATH
actionpack (7.0.0.alpha)
actionview (= 7.0.0.alpha)
activesupport (= 7.0.0.alpha)
rack (~> 2.0, >= 2.0.9)
rack (~> 2.0, >= 2.2.0)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.2.0)
Expand Down
2 changes: 1 addition & 1 deletion actionpack/actionpack.gemspec
Expand Up @@ -34,7 +34,7 @@ Gem::Specification.new do |s|

s.add_dependency "activesupport", version

s.add_dependency "rack", "~> 2.0", ">= 2.0.9"
s.add_dependency "rack", "~> 2.0", ">= 2.2.0"
s.add_dependency "rack-test", ">= 0.6.3"
s.add_dependency "rails-html-sanitizer", "~> 1.0", ">= 1.2.0"
s.add_dependency "rails-dom-testing", "~> 2.0"
Expand Down
4 changes: 0 additions & 4 deletions actionpack/lib/action_dispatch/http/request.rb
Expand Up @@ -428,10 +428,6 @@ def logger
def commit_flash
end

def ssl?
super || scheme == "wss"
end

def inspect # :nodoc:
"#<#{self.class.name} #{method} #{original_url.dump} for #{remote_ip}>"
end
Expand Down

0 comments on commit 14688b5

Please sign in to comment.