forked from Mirrors/freeswitch
(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:
parent
af681d8807
commit
25aa0332d0
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue