FS-4928
This commit is contained in:
parent
08fdff4511
commit
61ca331a28
|
@ -766,13 +766,13 @@ SWITCH_DECLARE(switch_status_t) switch_event_del_header_val(switch_event_t *even
|
||||||
unsigned long hash = 0;
|
unsigned long hash = 0;
|
||||||
|
|
||||||
tp = event->headers;
|
tp = event->headers;
|
||||||
|
hash = switch_ci_hashfunc_default(header_name, &hlen);
|
||||||
while (tp) {
|
while (tp) {
|
||||||
hp = tp;
|
hp = tp;
|
||||||
tp = tp->next;
|
tp = tp->next;
|
||||||
|
|
||||||
x++;
|
x++;
|
||||||
switch_assert(x < 1000000);
|
switch_assert(x < 1000000);
|
||||||
hash = switch_ci_hashfunc_default(header_name, &hlen);
|
|
||||||
|
|
||||||
if ((!hp->hash || hash == hp->hash) && !strcasecmp(header_name, hp->name) && (zstr(val) || !strcmp(hp->value, val))) {
|
if ((!hp->hash || hash == hp->hash) && !strcasecmp(header_name, hp->name) && (zstr(val) || !strcmp(hp->value, val))) {
|
||||||
if (lp) {
|
if (lp) {
|
||||||
|
|
Loading…
Reference in New Issue