Skip to content

Commit

Permalink
HTTP/2: evict redundant space during response status-line creation fr…
Browse files Browse the repository at this point in the history
…om cache (#309).
  • Loading branch information
aleksostapenko committed Mar 4, 2020
1 parent 4f0cdd1 commit 4f43032
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tempesta_fw/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -646,11 +646,10 @@ tfw_cache_set_status(TDB *db, TfwCacheEntry *ce, TfwHttpResp *resp,
TfwStr s_line = {
.chunks = (TfwStr []){
{ .data = S_0, .len = SLEN(S_0) },
{ .data = buf, .len = H2_STAT_VAL_LEN},
{ .data = " ", .len = 1 }
{ .data = buf, .len = H2_STAT_VAL_LEN}
},
.len = SLEN(S_0) + H2_STAT_VAL_LEN + 1,
.nchunks = 3
.len = SLEN(S_0) + H2_STAT_VAL_LEN,
.nchunks = 2
};

if (!tfw_ultoa(ce->resp_status, __TFW_STR_CH(&s_line, 1)->data,
Expand Down

0 comments on commit 4f43032

Please sign in to comment.