Skip to content
Browse files

Don't rely on ENV. Fixes #532

  • Loading branch information...
1 parent 232ed1e commit 0b8909ab7e4caa1e386907bdfc395c91762933b5 @oscardelben oscardelben 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 0b8909a

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