remove TODO since servlet 3.0 support is still needed.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user