diff options
| author | lelby <[email protected]> | 2022-02-10 16:49:36 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:49:36 +0300 | 
| commit | f1883685d823158395282817c80ae4589e0ce046 (patch) | |
| tree | 9a6ea433c5b377f9e6796db886b18377245f7f12 /library/cpp | |
| parent | f8f6804a3e352897afabc93afcb32081e3fca601 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 1 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 6689be684fc..057c6e9994e 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 e07db22bfc8..875b0599137 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()) {  | 
