Commit 12470508 authored by Andy Wilkinson's avatar Andy Wilkinson

Tolerate context root redirect not being configurable on Tomcat 7

Closes gh-13821
parent 7a000e68
...@@ -1049,8 +1049,13 @@ public class ServerProperties ...@@ -1049,8 +1049,13 @@ public class ServerProperties
@Override @Override
public void customize(Context context) { public void customize(Context context) {
try {
context.setMapperContextRootRedirectEnabled(redirectContextRoot); context.setMapperContextRootRedirectEnabled(redirectContextRoot);
} }
catch (NoSuchMethodError ex) {
// Tomcat 7. Continue.
}
}
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment