mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-08 08:51:50 +00:00
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:
parent
a1c2c9c5f9
commit
77dd6b0f8c
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user