提交 2b7a830d authored 作者: Anthony Minessale's avatar Anthony Minessale

allow duplicate headers to be parsed into events received on the wire

上级 fb5f29c2
......@@ -1180,7 +1180,6 @@ static switch_status_t read_packet(listener_t *listener, switch_event_t **event,
}
}
if (var && val) {
switch_event_del_header(*event, var);
switch_event_add_header_string(*event, SWITCH_STACK_BOTTOM, var, val);
if (!strcasecmp(var, "content-length")) {
clen = atoi(val);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论