修复bug
This commit is contained in:
@@ -114,7 +114,9 @@ public class HttpLogFilter extends BaseFilter implements Ordered, BaseParams {
|
|||||||
// 是否忽略响应体
|
// 是否忽略响应体
|
||||||
if (PathPatternUtils.match(RESP_WHITE_LIST, uri)) {
|
if (PathPatternUtils.match(RESP_WHITE_LIST, uri)) {
|
||||||
// 处理请求
|
// 处理请求
|
||||||
|
if (!response.isCommitted()) {
|
||||||
filterChain.doFilter(requestWrapper, response);
|
filterChain.doFilter(requestWrapper, response);
|
||||||
|
}
|
||||||
// 获取请求体数据
|
// 获取请求体数据
|
||||||
requestLog.put("requestBody", getContent(requestWrapper.getContentAsByteArray()));
|
requestLog.put("requestBody", getContent(requestWrapper.getContentAsByteArray()));
|
||||||
// 记录请求日志
|
// 记录请求日志
|
||||||
|
|||||||
Reference in New Issue
Block a user