[Freeswitch-svn] [commit] r9370 - freeswitch/trunk/src/mod/languages/mod_spidermonkey_curl

Freeswitch SVN anthm at freeswitch.org
Tue Aug 26 14:39:59 EDT 2008


Author: anthm
Date: Tue Aug 26 14:39:59 2008
New Revision: 9370

Modified:
   freeswitch/trunk/src/mod/languages/mod_spidermonkey_curl/mod_spidermonkey_curl.c

Log:
add optional content-type arg

Modified: freeswitch/trunk/src/mod/languages/mod_spidermonkey_curl/mod_spidermonkey_curl.c
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_spidermonkey_curl/mod_spidermonkey_curl.c	(original)
+++ freeswitch/trunk/src/mod/languages/mod_spidermonkey_curl/mod_spidermonkey_curl.c	Tue Aug 26 14:39:59 2008
@@ -159,7 +159,7 @@
 
 	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);



More information about the Freeswitch-svn mailing list