Skip to content
This repository
Browse code

Merge pull request #535 from oscardelben/fix_env_typo

Don't rely on ENV. Fixes #532
  • Loading branch information...
commit b0b68e18f17741caf651d8c4ba1ea22b25f3fe9c 2 parents 232ed1e + 0b8909a
Konstantin Haase authored April 12, 2013

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/rack/handler/webrick.rb
2  lib/rack/handler/webrick.rb
@@ -47,7 +47,7 @@ def service(req, res)
47 47
                      "rack.multiprocess" => false,
48 48
                      "rack.run_once" => false,
49 49
 
50  
-                     "rack.url_scheme" => ["yes", "on", "1"].include?(ENV["HTTPS"]) ? "https" : "http",
  50
+                     "rack.url_scheme" => ["yes", "on", "1"].include?(env["HTTPS"]) ? "https" : "http",
51 51
 
52 52
                      "rack.hijack?" => true,
53 53
                      "rack.hijack" => lambda { raise NotImplementedError, "only partial hijack is supported."},

0 notes on commit b0b68e1

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