[Freeswitch-svn] [commit] r13168 - freeswitch/trunk/libs/esl/src

FreeSWITCH SVN anthm at freeswitch.org
Mon Apr 27 11:02:44 PDT 2009


Author: anthm
Date: Mon Apr 27 13:02:44 2009
New Revision: 13168

Log:
send content len with body in esl sendevent

Modified:
   freeswitch/trunk/libs/esl/src/esl_event.c

Modified: freeswitch/trunk/libs/esl/src/esl_event.c
==============================================================================
--- freeswitch/trunk/libs/esl/src/esl_event.c	(original)
+++ freeswitch/trunk/libs/esl/src/esl_event.c	Mon Apr 27 13:02:44 2009
@@ -524,7 +524,7 @@
 		}
 		
 		if (blen) {
-			snprintf(buf + len, dlen - len, "\n%s", event->body);
+			snprintf(buf + len, dlen - len, "Content-Length: %d\n\n%s", (int)strlen(event->body), event->body);
 		} else {
 			snprintf(buf + len, dlen - len, "\n");
 		}



More information about the Freeswitch-svn mailing list