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.
Response.swallow_client_abort?
1 parent 1cb3e73 commit 82bf64cCopy full SHA for 82bf64c
src/main/java/org/jruby/rack/DefaultRackApplicationFactory.java
@@ -375,6 +375,11 @@ void initRuntime(final Ruby runtime) {
375
runtime.evalScriptlet("JRuby::Rack::Booter.on_boot { require 'jruby/rack/chunked' }");
376
// `require 'jruby/rack/chunked'` that happens after Rack is loaded
377
}
378
+ String swallowAbort = rackContext.getConfig().getProperty("jruby.rack.response.swallow_client_abort");
379
+ Boolean swallowAbortFlag = (Boolean) DefaultRackConfig.toStrictBoolean(swallowAbort, null);
380
+ if ( swallowAbortFlag != null ) {
381
+ runtime.evalScriptlet("JRuby::Rack::Response.swallow_client_abort = " + swallowAbortFlag + "");
382
+ }
383
384
385
/**
0 commit comments