Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add @pixeltrix's test case

  • Loading branch information...
commit c2fbcbdfea5a474da58d6935e4cfec7a46253ebf 1 parent 091c40a
@saizai authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 actionpack/test/dispatch/ssl_test.rb
View
10 actionpack/test/dispatch/ssl_test.rb
@@ -31,6 +31,16 @@ def test_redirects_http_to_https
response.headers['Location']
end
+ def test_tor_host_does_not_redirect
+ self.app = ActionDispatch::SSL.new(default_app, :host => "example.onion")
+
+ get "http://example.onion/"
+ assert_response :success
+
+ get "https://example.onion/"
+ assert_response :success
+ end
+
def test_hsts_header_by_default
get "https://example.org/"
assert_equal "max-age=31536000",

0 comments on commit c2fbcbd

Please sign in to comment.
Something went wrong with that request. Please try again.