Skip to content

Commit

Permalink
removing unnecessary CSTR_MOVE_HDR
Browse files Browse the repository at this point in the history
  • Loading branch information
avbelov23 committed Sep 23, 2020
1 parent aa44c22 commit 1a6330a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tempesta_fw/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -1167,7 +1167,6 @@ tfw_cache_h2_copy_hdr(TfwCacheEntry *ce, char **p, TdbVRec **trec, TfwStr *hdr,
TFW_STR_INIT(&s_val);
tfw_http_hdr_split(dup, &s_nm, &s_val, true);
st_index = dup->hpack_idx;
CSTR_MOVE_HDR();
}

if (st_index) {
Expand Down Expand Up @@ -1649,7 +1648,6 @@ __cache_entry_size(TfwHttpResp *resp)
TFW_STR_FOR_EACH_DUP(d, hdr, d_end) {
TfwStr s_nm = {}, s_val = {};

size += sizeof(TfwCStr);
tfw_http_hdr_split(d, &s_nm, &s_val, true);
size += tfw_h2_hdr_size(s_nm.len, s_val.len,
d->hpack_idx);
Expand Down

0 comments on commit 1a6330a

Please sign in to comment.