]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7429: fix to output proper json
authorYossi Neiman <mishehu@freeswitch.org>
Tue, 30 Jun 2015 17:45:01 +0000 (12:45 -0500)
committerMichael Jerris <mike@jerris.com>
Tue, 30 Jun 2015 18:08:43 +0000 (14:08 -0400)
src/mod/applications/mod_curl/mod_curl.c

index 61d2a8f2425b8b1348987792122d80e8e47d662f..9b9c7cc12bccc22e9daf97b4d6d583196acc4bf8 100644 (file)
@@ -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;