提交 d8e6c545 authored 作者: Yossi Neiman's avatar Yossi Neiman 提交者: Michael Jerris

FS-7429: fix to output proper json

上级 eb84d9cd
......@@ -269,7 +269,7 @@ static http_data_t *do_lookup_url(switch_memory_pool_t *pool, const char *url, c
static char *print_json(switch_memory_pool_t *pool, http_data_t *http_data)
{
cJSON *top = cJSON_CreateObject(),
*headers = cJSON_CreateObject();
*headers = cJSON_CreateArray();
char *data = NULL;
char tmp[32], *f = NULL;
switch_curl_slist_t *header = http_data->headers;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论