修改servicetable.pro中PXY_CTRL_HTTP_REQ_BODY,PXY_CTRL_HTTP_RES_BODY表为字符串表
修改获取请求参数时判断contentType=appliation/json
This commit is contained in:
@@ -178,13 +178,15 @@ public class SaveRequestLogThread implements Runnable {
|
||||
|
||||
public static SaveRequestLogThread getNewSaveRequestLogThread(HttpServletRequest request) {
|
||||
SaveRequestLogThread thread = new SaveRequestLogThread();
|
||||
|
||||
thread.setRemoteAddr(request.getRemoteAddr());
|
||||
thread.setRequestURI(request.getRequestURI());
|
||||
if (request.getMethod().toLowerCase().equals("get")) {
|
||||
thread.setQueryString(request.getQueryString());
|
||||
} else {
|
||||
thread.setQueryString(getBodyString(request));
|
||||
String contentType = request.getContentType();
|
||||
if(contentType.equals("application/json")) {
|
||||
thread.setQueryString(getBodyString(request));
|
||||
}
|
||||
}
|
||||
thread.setContextPath(request.getContextPath());
|
||||
thread.setRequestTime(new Date());
|
||||
|
||||
@@ -130,7 +130,7 @@ service=1:128;2:128;16:16;17:16;18:16;19:16;20:16;21:16;22:16;23:16;24:16;26:16;
|
||||
#0x210 PXY IP 重定向
|
||||
528=10:PXY_CTRL_COMPILE;11:PXY_CTRL_GROUP;12:PXY_CTRL_IP;18:NTC_IP_RANGE
|
||||
#0x211 PXY HTTP重定向
|
||||
529=10:PXY_CTRL_COMPILE;11:PXY_CTRL_GROUP;14:PXY_CTRL_HTTP_URL;15:PXY_CTRL_HTTP_REQ_HDR,PXY_CTRL_HTTP_RES_HDR,PXY_CTRL_HTTP_REQ_BODY,PXY_CTRL_HTTP_RES_BODY;18:NTC_IP_RANGE
|
||||
529=10:PXY_CTRL_COMPILE;11:PXY_CTRL_GROUP;14:PXY_CTRL_HTTP_URL,PXY_CTRL_HTTP_REQ_BODY,PXY_CTRL_HTTP_RES_BODY;15:PXY_CTRL_HTTP_REQ_HDR,PXY_CTRL_HTTP_RES_HDR;18:NTC_IP_RANGE
|
||||
|
||||
#0x220 PXY IP转发
|
||||
544=10:PXY_CTRL_COMPILE;11:PXY_CTRL_GROUP;12:PXY_CTRL_IP;18:NTC_IP_RANGE
|
||||
|
||||
Reference in New Issue
Block a user