Skip to content

Commit

Permalink
[BUGFIX] No need to lookup static table index by header name if hpack…
Browse files Browse the repository at this point in the history
…_index has been set.
  • Loading branch information
gwanglst committed Jun 6, 2020
1 parent b577d56 commit e3d4b3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lshpack.c
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,8 @@ henc_find_table_id (struct lshpack_enc *enc, lsxpack_header_t *input,
}

/* Name/value match is not found, look for header: */
input->hpack_index = lshpack_enc_get_static_name(input);
if (input->hpack_index == LSHPACK_HDR_UNKNOWN)
input->hpack_index = lshpack_enc_get_static_name(input);
if (input->hpack_index != LSHPACK_HDR_UNKNOWN)
{
input->flags &= ~LSXPACK_HPACK_VAL_MATCHED;
Expand Down

0 comments on commit e3d4b3e

Please sign in to comment.