From 7eae1bfd47c807fbd7058aace3cdfeefeb1d1208 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 17 Jun 2016 05:02:50 -0300 Subject: [PATCH] test --- iguana/iguana_rpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iguana/iguana_rpc.c b/iguana/iguana_rpc.c index b90950a6f..4095dd310 100755 --- a/iguana/iguana_rpc.c +++ b/iguana/iguana_rpc.c @@ -1007,7 +1007,7 @@ char *SuperNET_rpcparse(struct supernet_info *myinfo,char *retbuf,int32_t bufsiz } } origargjson = argjson; - if ( is_cJSON_Array(argjson) != 0 && cJSON_GetArraySize(argjson) == 0 ) + if ( is_cJSON_Array(argjson) != 0 && cJSON_GetArraySize(argjson) == 1 ) argjson = jitem(argjson,0); printf("after urlconv.(%s) argjson.(%s)\n",jprint(json,0),jprint(argjson,0)); if ( jstr(argjson,"method") == 0 )