]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add optional content-type arg
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 26 Aug 2008 18:39:59 +0000 (18:39 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 26 Aug 2008 18:39:59 +0000 (18:39 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9370 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/languages/mod_spidermonkey_curl/mod_spidermonkey_curl.c

index cdc9071f4033cdd577c561c9c6843514310b747e..048b4a2ddf94cd8b8e5571d8a6907344989695f2 100644 (file)
@@ -159,7 +159,7 @@ static JSBool curl_run(JSContext * cx, JSObject * obj, uintN argc, jsval * argv,
 
        if (argc > 7) {
                char *content_type = JS_GetStringBytes(JS_ValueToString(cx, argv[7]));
-               snprintf(ct, sizeof(ct), "Content-Type: %s", content_type);
+               switch_snprintf(ct, sizeof(ct), "Content-Type: %s", content_type);
        }
 
        headers = curl_slist_append(headers, ct);