Skip to content
This repository
Browse code

Don't rely on ENV. Fixes #532

  • Loading branch information...
commit 0b8909ab7e4caa1e386907bdfc395c91762933b5 1 parent 232ed1e
Oscar Del Ben authored March 30, 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 0b8909a

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