diff options
author | lelby <lelby@yandex-team.ru> | 2022-02-10 16:49:36 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:36 +0300 |
commit | 2091a6649bd6d42b9c8fd5f480948d0959fda869 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp | |
parent | f1883685d823158395282817c80ae4589e0ce046 (diff) | |
download | ydb-2091a6649bd6d42b9c8fd5f480948d0959fda869.tar.gz |
Restoring authorship annotation for <lelby@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp')
-rw-r--r-- | library/cpp/http/io/stream.cpp | 4 | ||||
-rw-r--r-- | library/cpp/http/server/http_ex.cpp | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/http/io/stream.cpp b/library/cpp/http/io/stream.cpp index 057c6e9994..6689be684f 100644 --- a/library/cpp/http/io/stream.cpp +++ b/library/cpp/http/io/stream.cpp @@ -277,7 +277,7 @@ private: return strnicmp(FirstLine().data(), "get", 3) == 0 || strnicmp(FirstLine().data(), "post", 4) == 0 || strnicmp(FirstLine().data(), "put", 3) == 0 || - strnicmp(FirstLine().data(), "patch", 5) == 0 || + strnicmp(FirstLine().data(), "patch", 5) == 0 || strnicmp(FirstLine().data(), "head", 4) == 0 || strnicmp(FirstLine().data(), "delete", 6) == 0; } @@ -657,7 +657,7 @@ private: inline bool HasRequestBody() const noexcept { return strnicmp(FirstLine_.data(), "POST", 4) == 0 || - strnicmp(FirstLine_.data(), "PATCH", 5) == 0 || + strnicmp(FirstLine_.data(), "PATCH", 5) == 0 || strnicmp(FirstLine_.data(), "PUT", 3) == 0; } static inline size_t ParseHttpVersion(const TString& s) { diff --git a/library/cpp/http/server/http_ex.cpp b/library/cpp/http/server/http_ex.cpp index 875b059913..e07db22bfc 100644 --- a/library/cpp/http/server/http_ex.cpp +++ b/library/cpp/http/server/http_ex.cpp @@ -32,7 +32,7 @@ bool THttpClientRequestExtension::ProcessHeaders(TBaseServerRequestData& rd, TBl Get, Post, Put, - Patch, + Patch, Delete, }; @@ -48,9 +48,9 @@ bool THttpClientRequestExtension::ProcessHeaders(TBaseServerRequestData& rd, TBl } else if (strnicmp(s, "PUT ", 4) == 0) { foundMethod = Put; urlStart = s + 4; - } else if (strnicmp(s, "PATCH ", 6) == 0) { - foundMethod = Patch; - urlStart = s + 6; + } else if (strnicmp(s, "PATCH ", 6) == 0) { + foundMethod = Patch; + urlStart = s + 6; } else if (strnicmp(s, "DELETE ", 7) == 0) { foundMethod = Delete; urlStart = s + 7; @@ -68,7 +68,7 @@ bool THttpClientRequestExtension::ProcessHeaders(TBaseServerRequestData& rd, TBl case Post: case Put: - case Patch: + case Patch: try { ui64 contentLength = 0; if (Input().HasExpect100Continue()) { |