Skip to content

Commit 2b82e6f

Browse files
committed
Update HttpFilterInterceptor.java
1 parent a700ff1 commit 2b82e6f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

guice/src/main/java/com/flipkart/gjex/http/interceptor/HttpFilterInterceptor.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,12 @@ public final void doFilter(ServletRequest request, ServletResponse response,
9393
responseHeaders.forEach(responseWrapper::setHeader);
9494
} finally {
9595
// Allow the filters to process the response
96-
filters.forEach(filter -> filter.doProcessResponse(responseWrapper));
97-
response.getOutputStream().write(responseWrapper.getWrapperBytes());
96+
try{
97+
filters.forEach(filter -> filter.doProcessResponse(responseWrapper));
98+
response.getOutputStream().write(responseWrapper.getWrapperBytes());
99+
} catch (Exception e){
100+
error("Error while doProcessResponse", e);
101+
}
98102
}
99103

100104
} else {

0 commit comments

Comments
 (0)