Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't rely on ENV. Fixes #532

commit 0b8909ab7e4caa1e386907bdfc395c91762933b5 1 parent 232ed1e
@oscardelben oscardelben authored
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."},
Please sign in to comment.
Something went wrong with that request. Please try again.