remove TODO since servlet 3.0 support is still needed.

This commit is contained in:
Spencer Gibb
2017-09-27 16:13:38 -04:00
parent 0717767297
commit c568ded7c9
2 changed files with 2 additions and 2 deletions

View File

@@ -72,8 +72,8 @@ public class SendResponseFilter extends ZuulFilter {
public SendResponseFilter() {
super();
// To support Servlet API 3.1 we need to check if setContentLengthLong exists
// minimum support in Spring 5 is 3.0 so we need to keep tihs
try {
//TODO: remove in 2.0
HttpServletResponse.class.getMethod("setContentLengthLong", long.class);
} catch(NoSuchMethodException e) {
useServlet31 = false;

View File

@@ -69,8 +69,8 @@ public class RibbonRoutingFilter extends ZuulFilter {
this.ribbonCommandFactory = ribbonCommandFactory;
this.requestCustomizers = requestCustomizers;
// To support Servlet API 3.1 we need to check if getContentLengthLong exists
// Spring 5 minimum support is 3.0, so this stays
try {
//TODO: remove in 2.0
HttpServletRequest.class.getMethod("getContentLengthLong");
} catch(NoSuchMethodException e) {
useServlet31 = false;