Skip to content

Commit

Permalink
fix wrong condition for OPTION to ignore both 'Date' and 'Allow' headers
Browse files Browse the repository at this point in the history
amend for : 91d7d30
  • Loading branch information
kares committed Aug 3, 2017
1 parent 91d7d30 commit 0e0ba6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/jruby/rack/servlet/ResponseCapture.java
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public boolean isHandled(final HttpServletRequest request) {
// Tomcat's DefaultServlet sets 'Allow' header but Jetty also sets the 'Date' header with its servlet
// ... if any other headers occur beside 'Allow' and 'Date' we consider this request handled
for ( final String headerName : headerNames ) {
if ( ! "Allow".equals( headerName ) || ! "Date".equals( headerName ) ) {
if ( ! "Allow".equals( headerName ) && ! "Date".equals( headerName ) ) {
return handled = true;
}
}
Expand Down

0 comments on commit 0e0ba6a

Please sign in to comment.