From 25aa0332d027adc5cd1d5b97169a5b0c8a915e0d Mon Sep 17 00:00:00 2001 From: Mathieu Rene Date: Thu, 2 Apr 2009 18:32:57 +0000 Subject: [PATCH] (rupa) Avoid extra [ ] around header value git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12890 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/esl/src/esl_event.c | 2 +- libs/esl/src/include/esl.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/esl/src/esl_event.c b/libs/esl/src/esl_event.c index b683488ba0..3705b4f549 100644 --- a/libs/esl/src/esl_event.c +++ b/libs/esl/src/esl_event.c @@ -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; diff --git a/libs/esl/src/include/esl.h b/libs/esl/src/include/esl.h index ecca190849..db86abb73b 100644 --- a/libs/esl/src/include/esl.h +++ b/libs/esl/src/include/esl.h @@ -174,6 +174,8 @@ typedef enum { #include #include #ifndef WIN32 +#include +#include #include #include #include