[Freeswitch-svn] [commit] r6419 - freeswitch/trunk/src
Freeswitch SVN
anthm at freeswitch.org
Wed Nov 28 15:51:25 EST 2007
Author: anthm
Date: Wed Nov 28 15:51:25 2007
New Revision: 6419
Modified:
freeswitch/trunk/src/switch_utils.c
Log:
allow templates to contain mime encoded messages
Modified: freeswitch/trunk/src/switch_utils.c
==============================================================================
--- freeswitch/trunk/src/switch_utils.c (original)
+++ freeswitch/trunk/src/switch_utils.c Wed Nov 28 15:51:25 2007
@@ -176,7 +176,11 @@
return SWITCH_FALSE;
if (file) {
- snprintf(buf, B64BUFFLEN, "--%s\nContent-Type: text/plain\n\n", bound);
+ if (body && switch_stristr("content-type", body)) {
+ snprintf(buf, B64BUFFLEN, "--%s\n", bound);
+ } else {
+ snprintf(buf, B64BUFFLEN, "--%s\nContent-Type: text/plain\n\n", bound);
+ }
if (!write_buf(fd, buf))
return SWITCH_FALSE;
}
More information about the Freeswitch-svn
mailing list