Skip to content

Commit db4e8f7

Browse files
committed
simply tell rack.hijack? isn't supported
1 parent 55b1b6c commit db4e8f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/ruby/rack/handler/servlet/default_env.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Servlet
2020
class DefaultEnv < Hash # The environment must be an instance of Hash !
2121

2222
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?
2424
java.servlet_request java.servlet_response java.servlet_context
2525
jruby.rack.version).
2626
map!(&:freeze)
@@ -235,6 +235,7 @@ def load_builtin(env, key)
235235
when 'rack.multithread' then env[key] = true
236236
when 'rack.multiprocess' then env[key] = false
237237
when 'rack.run_once' then env[key] = false
238+
when 'rack.hijack?' then env[key] = false
238239
when 'rack.input' then
239240
env[key] = @servlet_env ? JRuby::Rack::Input.new(@servlet_env) : nil
240241
when 'rack.errors' then context = rack_context

0 commit comments

Comments
 (0)