From 868da4f642615eced38f6c5e9247fcc5be4c67cd Mon Sep 17 00:00:00 2001 From: fengweihao Date: Mon, 3 Jul 2023 18:25:03 +0800 Subject: [PATCH] =?UTF-8?q?TSG-15781=20=E5=88=A0=E9=99=A4=E7=AD=96?= =?UTF-8?q?=E7=95=A5=E7=94=A8=E6=88=B7=E8=87=AA=E5=AE=9A=E5=9F=9F=E4=B8=AD?= =?UTF-8?q?=E7=9A=84protocol=E5=AD=97=E6=AE=B5=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/business/tsg-http/src/tsg_http.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/plugin/business/tsg-http/src/tsg_http.cpp b/plugin/business/tsg-http/src/tsg_http.cpp index b6a28e7..dbbcd94 100644 --- a/plugin/business/tsg-http/src/tsg_http.cpp +++ b/plugin/business/tsg-http/src/tsg_http.cpp @@ -458,13 +458,6 @@ void policy_action_param_new(const char *table_name, int table_id, const char* k return; } - item=cJSON_GetObjectItem(json, "protocol"); - if(unlikely(!item || !cJSON_IsString(item))) - { - TFE_LOG_ERROR(g_proxy_rt->local_logger, "Invalid policy parameter: %lld invalid protocol format", config_id); - goto error_out; - } - param=ALLOC(struct policy_action_param, 1); param->ref_cnt=1; param->hit_rule.action=action; @@ -474,12 +467,6 @@ void policy_action_param_new(const char *table_name, int table_id, const char* k param->hit_rule.srv_def_large=tfe_strdup(srv_def_large); pthread_mutex_init(&(param->lock), NULL); - if(0!=strcasecmp(item->valuestring, "http")) - { - *ad=param; - goto error_out; - } - item=cJSON_GetObjectItem(json,"method"); if(item && item->type==cJSON_String) {