Skip to content

Commit

Permalink
Don't rely on ENV. Fixes rack#532
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardelben committed Mar 31, 2013
1 parent 232ed1e commit 0b8909a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rack/handler/webrick.rb
Expand Up @@ -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."},
Expand Down

0 comments on commit 0b8909a

Please sign in to comment.