diff --git a/tempesta_fw/http.c b/tempesta_fw/http.c index b2c4362e9..33db4bf90 100644 --- a/tempesta_fw/http.c +++ b/tempesta_fw/http.c @@ -685,19 +685,18 @@ static int tfw_http_add_hdr_110(TfwHttpMsg *hm) { int r; - static const char const * __read_mostly s_110 = "Response is Stale"; TfwVhost *vhost = tfw_vhost_get_default(); TfwStr rh = { -#define S_Stale "Warning: 110 -" +#define S_Stale "Warning: 110 - Response is stale" .ptr = (TfwStr []) { { .ptr = S_Stale, .len = SLEN(S_Stale) }, - { .ptr = (void *)s_110, - .len = SLEN(s_110) }, + { .ptr = (void *)": ", + .len = 2 }, { .ptr = *this_cpu_ptr(&g_buf), .len = vhost->hdr_via_len }, }, - .len = SLEN(S_Stale) + SLEN(s_110) + vhost->hdr_via_len, + .len = SLEN(S_Stale) + 2 + vhost->hdr_via_len, .eolen = 2, .flags = 3 << TFW_STR_CN_SHIFT #undef S_Stale