Skip to content

Commit

Permalink
HTTP/2: fix duplicate headers processing during response forwarding (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksostapenko committed Feb 29, 2020
1 parent 4dec0e8 commit 2d7bb75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tempesta_fw/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -4006,16 +4006,18 @@ tfw_h2_resp_next_hdr(TfwHttpResp *resp, const TfwHdrMods *h_mods)

for (i = mit->curr; i < map->count; ++i) {
int k;
TfwStr *first;
unsigned short hid = map->index[i].idx;
unsigned short d_num = map->index[i].d_idx;
TfwStr *tgt = &ht->tbl[hid];
TfwStr *first = TFW_STR_CHUNK(tgt, 0);
TfwHdrModsDesc *f_desc = NULL;
const TfwStr *val;

if (TFW_STR_DUP(tgt))
tgt = TFW_STR_CHUNK(tgt, d_num);

first = TFW_STR_CHUNK(tgt, 0);

if (WARN_ON_ONCE(!tgt
|| TFW_STR_EMPTY(tgt)
|| TFW_STR_DUP(tgt)))
Expand Down

0 comments on commit 2d7bb75

Please sign in to comment.