add optional content-type arg

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9370 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-08-26 18:39:59 +00:00
parent a1c2c9c5f9
commit 77dd6b0f8c
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ static JSBool curl_run(JSContext * cx, JSObject * obj, uintN argc, jsval * argv,
if (argc > 7) { if (argc > 7) {
char *content_type = JS_GetStringBytes(JS_ValueToString(cx, argv[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); headers = curl_slist_append(headers, ct);