diff options
Diffstat (limited to 'lib/yahns/server.rb')
-rw-r--r-- | lib/yahns/server.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/yahns/server.rb b/lib/yahns/server.rb index 09ddbef..d6a03f3 100644 --- a/lib/yahns/server.rb +++ b/lib/yahns/server.rb @@ -382,6 +382,9 @@ class Yahns::Server # :nodoc: ctx.__send__(:include, l.expire_mod) if ssl_ctx = opts[:ssl_ctx] ctx.__send__(:include, Yahns::OpenSSLClient) + env = ctx.app_defaults = ctx.app_defaults.dup + env['HTTPS'] = 'on' # undocumented, but Rack::Request uses this + env['rack.url_scheme'] = 'https' # call OpenSSL::SSL::SSLContext#setup explicitly here to detect # errors and avoid race conditions. We avoid calling this in the |