Skip to content

Commit 55b1b6c

Browse files
committed
drop jruby.rack.* keys except version
1 parent 7785c24 commit 55b1b6c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class DefaultEnv < Hash # The environment must be an instance of Hash !
2222
BUILTINS = %w(rack.version rack.input rack.errors rack.url_scheme
2323
rack.multithread rack.multiprocess rack.run_once
2424
java.servlet_request java.servlet_response java.servlet_context
25-
jruby.rack.version jruby.rack.jruby.version jruby.rack.rack.release).
25+
jruby.rack.version).
2626
map!(&:freeze)
2727

2828
VARIABLES = %w(CONTENT_TYPE CONTENT_LENGTH PATH_INFO QUERY_STRING
@@ -248,8 +248,6 @@ def load_builtin(env, key)
248248
when 'java.servlet_context' then env[key] = servlet_context
249249
when 'jruby.rack.context' then env[key] = rack_context
250250
when 'jruby.rack.version' then env[key] = JRuby::Rack::VERSION
251-
when 'jruby.rack.jruby.version' then env[key] = JRUBY_VERSION
252-
when 'jruby.rack.rack.release' then env[key] = ::Rack.release
253251
else
254252
nil
255253
end

0 commit comments

Comments
 (0)