File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/org/jruby/rack/servlet Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ public boolean isHandled(final HttpServletRequest request) {
231
231
return false ;
232
232
}
233
233
for ( final String headerName : headerNames ) {
234
- if ( ! "Allow" .equals (headerName ) ) {
234
+ if ( ! "Allow" .equals ( headerName ) ) {
235
235
return handled = true ; // not just Allow header - consider handled
236
236
}
237
237
}
@@ -274,8 +274,8 @@ public boolean isOutputAccessed() {
274
274
private Collection <String > getHeaderNamesOrNull () {
275
275
// NOTE: getHeaderNames since Servlet API 3.0 JRuby-Rack 1.1 still supports 2.5
276
276
try {
277
- final Method getHeaderNames = HttpServletResponse . class .getMethod ("getHeaderNames" );
278
- return (Collection <String >) getHeaderNames .invoke (this );
277
+ final Method getHeaderNames = getResponse (). getClass () .getMethod ("getHeaderNames" );
278
+ return (Collection <String >) getHeaderNames .invoke ( getResponse () );
279
279
}
280
280
catch (NoSuchMethodException e ) { return null ; }
281
281
catch (IllegalAccessException e ) { return null ; }
You can’t perform that action at this time.
0 commit comments