We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 914416d commit 01fbc0fCopy full SHA for 01fbc0f
src/main/ruby/jruby/rack/error_app/show_status.rb
@@ -1,15 +1,15 @@
1
require 'erb'
2
-require 'rack/request'
3
-require 'rack/utils'
4
5
class JRuby::Rack::ErrorApp
6
7
# catches empty responses and replaces them with a site explaining the error.
8
#
9
# @note kindly adapted from on Rack::ShowStatus
+ # @private internal API - likely won't exist in 1.2.x
10
class ShowStatus
11
12
def initialize(app)
+ require 'rack/request'; require 'rack/utils'
13
@app = app
14
@template = ERB.new(TEMPLATE)
15
end
0 commit comments