From 0ff9a4b1ad77a56a9bdd5bd865e9b0e41fddbb92 Mon Sep 17 00:00:00 2001 From: Artyom Belov Date: Tue, 22 Sep 2020 14:30:17 +0300 Subject: [PATCH] converting headers to lowercase for h2 --- tempesta_fw/http_msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tempesta_fw/http_msg.c b/tempesta_fw/http_msg.c index e006701abc..33a247cdbe 100644 --- a/tempesta_fw/http_msg.c +++ b/tempesta_fw/http_msg.c @@ -1418,7 +1418,7 @@ tfw_h2_msg_rewrite_data(TfwHttpTransIter *mit, const TfwStr *str, return -E2BIG; } - memcpy_fast(mit->curr_ptr, c->data + c_off, n_copy); + tfw_cstrtolower(mit->curr_ptr, c->data + c_off, n_copy); T_DBG3("%s: acc_len=%lu, n_copy=%u, mit->curr_ptr='%.*s'," " ptr_diff=%ld\n", __func__, mit->acc_len, n_copy,