Skip to content

Commit

Permalink
Merge pull request rack#535 from oscardelben/fix_env_typo
Browse files Browse the repository at this point in the history
Don't rely on ENV. Fixes rack#532
  • Loading branch information
rkh committed Apr 12, 2013
2 parents 232ed1e + 0b8909a commit b0b68e1
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 b0b68e1

Please sign in to comment.