File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/ruby/rack/handler/servlet Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class Servlet
20
20
class DefaultEnv < Hash # The environment must be an instance of Hash !
21
21
22
22
BUILTINS = %w( rack.version rack.input rack.errors rack.url_scheme
23
- rack.multithread rack.multiprocess rack.run_once
23
+ rack.multithread rack.multiprocess rack.run_once rack.hijack?
24
24
java.servlet_request java.servlet_response java.servlet_context
25
25
jruby.rack.version ) .
26
26
map! ( &:freeze )
@@ -235,6 +235,7 @@ def load_builtin(env, key)
235
235
when 'rack.multithread' then env [ key ] = true
236
236
when 'rack.multiprocess' then env [ key ] = false
237
237
when 'rack.run_once' then env [ key ] = false
238
+ when 'rack.hijack?' then env [ key ] = false
238
239
when 'rack.input' then
239
240
env [ key ] = @servlet_env ? JRuby ::Rack ::Input . new ( @servlet_env ) : nil
240
241
when 'rack.errors' then context = rack_context
You can’t perform that action at this time.
0 commit comments