修改servicetable.pro中PXY_CTRL_HTTP_REQ_BODY,PXY_CTRL_HTTP_RES_BODY表为字符串表

修改获取请求参数时判断contentType=appliation/json
This commit is contained in:
RenKaiGe-Office
2018-07-10 17:37:41 +08:00
parent 20c49800d6
commit ac2a5b23b9
2 changed files with 5 additions and 3 deletions

View File

@@ -178,14 +178,16 @@ 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 {
String contentType = request.getContentType();
if(contentType.equals("application/json")) {
thread.setQueryString(getBodyString(request));
}
}
thread.setContextPath(request.getContextPath());
thread.setRequestTime(new Date());
BufferedReader reader = null;

View File

@@ -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