From 4f430329f0c677974298aa16835cce9b9a6b8170 Mon Sep 17 00:00:00 2001 From: Alexander Ostapenko Date: Wed, 4 Mar 2020 10:21:59 +0300 Subject: [PATCH] HTTP/2: evict redundant space during response status-line creation from cache (#309). --- tempesta_fw/cache.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tempesta_fw/cache.c b/tempesta_fw/cache.c index 2d57adf02b..f28eec0e20 100644 --- a/tempesta_fw/cache.c +++ b/tempesta_fw/cache.c @@ -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,