Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Don't rely on ENV. Fixes #532 #535

Merged
merged 1 commit into from

3 participants

@oscardelben

Fixes #532 . From the history it just seems that nobody ever updated it.

@spastorino
Owner

@raggi :+1: to this too, please merge

@rkh rkh merged commit b0b68e1 into rack:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 31, 2013
  1. @oscardelben
This page is out of date. Refresh to see the latest.
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."},
Something went wrong with that request. Please try again.