aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-06-09 21:52:16 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-06-09 21:52:16 +0300
commit818b14d086c67666a1d68bdf7ee6a7fe424acaed (patch)
tree822d729513656b3a918f33f958ddf2eb6f365d6d
parent711e8dcfc5597da133348eb7db05d01ee1f0ce2b (diff)
downloadydb-818b14d086c67666a1d68bdf7ee6a7fe424acaed.tar.gz
intermediate changes
ref:867b363c3b1b55cb4589971a77303a6d0d3e1dbe
-rw-r--r--library/cpp/actors/http/http.h7
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";
}