diff options
author | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-06-09 21:52:16 +0300 |
---|---|---|
committer | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-06-09 21:52:16 +0300 |
commit | 818b14d086c67666a1d68bdf7ee6a7fe424acaed (patch) | |
tree | 822d729513656b3a918f33f958ddf2eb6f365d6d | |
parent | 711e8dcfc5597da133348eb7db05d01ee1f0ce2b (diff) | |
download | ydb-818b14d086c67666a1d68bdf7ee6a7fe424acaed.tar.gz |
intermediate changes
ref:867b363c3b1b55cb4589971a77303a6d0d3e1dbe
-rw-r--r-- | library/cpp/actors/http/http.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/library/cpp/actors/http/http.h b/library/cpp/actors/http/http.h index 3919737ff7..318000389c 100644 --- a/library/cpp/actors/http/http.h +++ b/library/cpp/actors/http/http.h @@ -704,7 +704,12 @@ public: TStringBuf GetConnection() const { if (!Connection.empty()) { - return Connection; + if (TEqNoCase()(Connection, "keep-alive")) { + return "keep-alive"; + } + if (TEqNoCase()(Connection, "close")) { + return "close"; + } } return Version == "1.0" ? "close" : "keep-alive"; } |