aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http/server/http.cpp
diff options
context:
space:
mode:
authorconterouz <conterouz@yandex-team.com>2023-09-11 21:51:16 +0300
committerconterouz <conterouz@yandex-team.com>2023-09-11 22:13:09 +0300
commit6a7def716ee30ea697561451eb4a9a685c39c26b (patch)
tree3e6aad4e685b12197de81b53d5fee69f9e9e2c93 /library/cpp/http/server/http.cpp
parente08d8c6f9b90f2f8a14f26761f8f913614068cf6 (diff)
downloadydb-6a7def716ee30ea697561451eb4a9a685c39c26b.tar.gz
Перенести проверку TTL до парсинга заголовков
Diffstat (limited to 'library/cpp/http/server/http.cpp')
-rw-r--r--library/cpp/http/server/http.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/library/cpp/http/server/http.cpp b/library/cpp/http/server/http.cpp
index 58d23d994d..a5dfe08e55 100644
--- a/library/cpp/http/server/http.cpp
+++ b/library/cpp/http/server/http.cpp
@@ -744,6 +744,11 @@ void TClientRequest::Process(void* ThreadSpecificResource) {
HttpConn_->Output()->EnableCompression(HttpServ()->Options().CompressionEnabled);
}
+ if (!BeforeParseRequestOk(ThreadSpecificResource)) {
+ ReleaseConnection();
+ return;
+ }
+
if (ParsedHeaders.empty()) {
RequestString = Input().FirstLine();