mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-17 06:48:33 +00:00
disable duplicate headers on request param events
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14909 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
119ee4e0ad
commit
d2b797fe54
4 files changed
+22
No files matched your search
@@ -299,6 +299,10 @@ static esl_status_t esl_event_base_add_header(esl_event_t *event, esl_stack_t st
|
||||
header = ALLOC(sizeof(*header));
|
||||
esl_assert(header);
|
||||
|
||||
if ((event->flags & EF_UNIQ_HEADERS)) {
|
||||
esl_event_del_header(event, header_name);
|
||||
}
|
||||
|
||||
memset(header, 0, sizeof(*header));
|
||||
|
||||
header->name = DUP(header_name);
|
||||
|
||||
@@ -160,8 +160,12 @@ struct esl_event {
|
||||
/*! unique key */
|
||||
unsigned long key;
|
||||
struct esl_event *next;
|
||||
int flags;
|
||||
};
|
||||
|
||||
typedef enum {
|
||||
EF_UNIQ_HEADERS = (1 << 0)
|
||||
} esl_event_flag_t;
|
||||
|
||||
|
||||
#define ESL_EVENT_SUBCLASS_ANY NULL
|
||||
|
||||
Reference in new issue
Block a user