summaryrefslogtreecommitdiff
path: root/plugin/business/tsg-http/src/tsg_http.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/business/tsg-http/src/tsg_http.cpp')
-rw-r--r--plugin/business/tsg-http/src/tsg_http.cpp13
1 files changed, 0 insertions, 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)
{