mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-14 05:18:31 +00:00
FS-7429: fix to output proper json
This commit is contained in:
1 parent
cde9702859
commit
8ca2cfa574
1 file changed
+1
-1
@@ -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)
|
static char *print_json(switch_memory_pool_t *pool, http_data_t *http_data)
|
||||||
{
|
{
|
||||||
cJSON *top = cJSON_CreateObject(),
|
cJSON *top = cJSON_CreateObject(),
|
||||||
*headers = cJSON_CreateObject();
|
*headers = cJSON_CreateArray();
|
||||||
char *data = NULL;
|
char *data = NULL;
|
||||||
char tmp[32], *f = NULL;
|
char tmp[32], *f = NULL;
|
||||||
switch_curl_slist_t *header = http_data->headers;
|
switch_curl_slist_t *header = http_data->headers;
|
||||||
|
|||||||
Reference in new issue
Block a user