aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http/server/http.cpp
diff options
context:
space:
mode:
authordanlark <danlark@yandex-team.ru>2022-02-10 16:46:10 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:10 +0300
commitbaa58daefa91fde4b4769facdbd2903763b9c6a8 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/http/server/http.cpp
parent3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (diff)
downloadydb-baa58daefa91fde4b4769facdbd2903763b9c6a8.tar.gz
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/http/server/http.cpp')
-rw-r--r--library/cpp/http/server/http.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/http/server/http.cpp b/library/cpp/http/server/http.cpp
index 8aa7ccb08a..128583bdd7 100644
--- a/library/cpp/http/server/http.cpp
+++ b/library/cpp/http/server/http.cpp
@@ -352,7 +352,7 @@ public:
for (;;) {
try {
const TInstant deadline = Options_.PollTimeout == TDuration::Zero() ? TInstant::Max() : now + Options_.PollTimeout;
- const size_t ret = Poller->WaitD(events.data(), events.size(), deadline);
+ const size_t ret = Poller->WaitD(events.data(), events.size(), deadline);
now = TInstant::Now();
for (size_t i = 0; i < ret; ++i) {
@@ -368,7 +368,7 @@ public:
// poller. Thus in this case we can safely process only one
// event from the poller at a time.
if (!Options_.MaxConnections && Options_.ExpirationTimeout == TDuration::Zero()) {
- if (ret >= events.size()) {
+ if (ret >= events.size()) {
events.resize(ret * 2);
}
}
@@ -617,7 +617,7 @@ TClientRequest::~TClientRequest() {
}
bool TClientRequest::Reply(void* /*ThreadSpecificResource*/) {
- if (strnicmp(RequestString.data(), "GET ", 4)) {
+ if (strnicmp(RequestString.data(), "GET ", 4)) {
Output() << "HTTP/1.0 501 Not Implemented\r\n\r\n";
} else {
Output() << "HTTP/1.0 200 OK\r\n"
@@ -732,9 +732,9 @@ void TClientRequest::ProcessFailRequest(int failstate) {
TString url;
- if (!strnicmp(RequestString.data(), "GET ", 4)) {
+ if (!strnicmp(RequestString.data(), "GET ", 4)) {
// Trying to extract url...
- const char* str = RequestString.data();
+ const char* str = RequestString.data();
// Skipping spaces before url...
size_t start = 3;