Skip to content

Commit 01fbc0f

Browse files
committed
note that ErrorApp::ShowStatus is not public API + delay rack loading
1 parent 914416d commit 01fbc0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/ruby/jruby/rack/error_app/show_status.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
require 'erb'
2-
require 'rack/request'
3-
require 'rack/utils'
42

53
class JRuby::Rack::ErrorApp
64

75
# catches empty responses and replaces them with a site explaining the error.
86
#
97
# @note kindly adapted from on Rack::ShowStatus
8+
# @private internal API - likely won't exist in 1.2.x
109
class ShowStatus
1110

1211
def initialize(app)
12+
require 'rack/request'; require 'rack/utils'
1313
@app = app
1414
@template = ERB.new(TEMPLATE)
1515
end

0 commit comments

Comments
 (0)