(rupa) Avoid extra [ ] around header value

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12890 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Mathieu Rene 2009-04-02 18:32:57 +00:00
parent af681d8807
commit 25aa0332d0
2 changed files with 3 additions and 1 deletions

View File

@ -475,7 +475,7 @@ ESL_DECLARE(esl_status_t) esl_event_serialize(esl_event_t *event, char **str, es
if (encode) {
esl_url_encode(hp->value, encode_buf, encode_len);
} else {
esl_snprintf(encode_buf, encode_len, "[%s]", hp->value);
esl_snprintf(encode_buf, encode_len, "%s", hp->value);
}
llen = strlen(hp->name) + strlen(encode_buf) + 8;

View File

@ -174,6 +174,8 @@ typedef enum {
#include <stdlib.h>
#include <string.h>
#ifndef WIN32
#include <sys/types.h>
#include <sys/select.h>
#include <netinet/tcp.h>
#include <sys/signal.h>
#include <unistd.h>