send content len with body in esl sendevent

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13168 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2009-04-27 18:02:44 +00:00
parent e7470e882c
commit 78771b6cbc
1 changed files with 1 additions and 1 deletions

View File

@ -524,7 +524,7 @@ ESL_DECLARE(esl_status_t) esl_event_serialize(esl_event_t *event, char **str, es
}
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");
}