From: Yossi Neiman Date: Tue, 30 Jun 2015 17:45:01 +0000 (-0500) Subject: FS-7429: fix to output proper json X-Git-Tag: v1.4.20~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8e6c545a6afe233dd061c618e3c068cfe4448b1;p=thirdparty%2Ffreeswitch.git FS-7429: fix to output proper json --- diff --git a/src/mod/applications/mod_curl/mod_curl.c b/src/mod/applications/mod_curl/mod_curl.c index 61d2a8f242..9b9c7cc12b 100644 --- a/src/mod/applications/mod_curl/mod_curl.c +++ b/src/mod/applications/mod_curl/mod_curl.c @@ -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;