Skip to content

Commit 0e0ba6a

Browse files
committed
fix wrong condition for OPTION to ignore both 'Date' and 'Allow' headers
amend for : 91d7d30
1 parent 91d7d30 commit 0e0ba6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/jruby/rack/servlet/ResponseCapture.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public boolean isHandled(final HttpServletRequest request) {
236236
// Tomcat's DefaultServlet sets 'Allow' header but Jetty also sets the 'Date' header with its servlet
237237
// ... if any other headers occur beside 'Allow' and 'Date' we consider this request handled
238238
for ( final String headerName : headerNames ) {
239-
if ( ! "Allow".equals( headerName ) || ! "Date".equals( headerName ) ) {
239+
if ( ! "Allow".equals( headerName ) && ! "Date".equals( headerName ) ) {
240240
return handled = true;
241241
}
242242
}

0 commit comments

Comments
 (0)