Skip to content
Browse files

Merge pull request #535 from oscardelben/fix_env_typo

Don't rely on ENV. Fixes #532
  • Loading branch information...
2 parents 232ed1e + 0b8909a commit b0b68e18f17741caf651d8c4ba1ea22b25f3fe9c @rkh rkh committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rack/handler/webrick.rb
View
2 lib/rack/handler/webrick.rb
@@ -47,7 +47,7 @@ def service(req, res)
"rack.multiprocess" => false,
"rack.run_once" => false,
- "rack.url_scheme" => ["yes", "on", "1"].include?(ENV["HTTPS"]) ? "https" : "http",
+ "rack.url_scheme" => ["yes", "on", "1"].include?(env["HTTPS"]) ? "https" : "http",
"rack.hijack?" => true,
"rack.hijack" => lambda { raise NotImplementedError, "only partial hijack is supported."},

0 comments on commit b0b68e1

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