git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12890
d0543943-73ff-0310-b7d9-
9358b9ac24b2
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;
#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>