honor HTTP_X_FORWARDED_SCHEME in Rack#scheme #292

Closed
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+2 −0
Split
View
@@ -72,6 +72,8 @@ def scheme
'https'
elsif @env['HTTP_X_FORWARDED_SSL'] == 'on'
'https'
+ elsif @env['HTTP_X_FORWARDED_SCHEME']
+ @env['HTTP_X_FORWARDED_SCHEME']
elsif @env['HTTP_X_FORWARDED_PROTO']
@env['HTTP_X_FORWARDED_PROTO'].split(',')[0]
else