diff options
author | conterouz <conterouz@yandex-team.com> | 2023-05-31 16:27:34 +0300 |
---|---|---|
committer | conterouz <conterouz@yandex-team.com> | 2023-05-31 16:27:34 +0300 |
commit | c6cc16a082ccfb808746450519b396809e644c17 (patch) | |
tree | 2403ffa729fa2c2fa6d10e35f8bef97fed068e40 /library/cpp/http/server/http_ex.cpp | |
parent | a627cca9e4a275aca28ec11fbda9977a6cfed8af (diff) | |
download | ydb-c6cc16a082ccfb808746450519b396809e644c17.tar.gz |
Revert "Поддержать метод OPTIONS во внешнем uaas"
Diffstat (limited to 'library/cpp/http/server/http_ex.cpp')
-rw-r--r-- | library/cpp/http/server/http_ex.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/library/cpp/http/server/http_ex.cpp b/library/cpp/http/server/http_ex.cpp index fc43d2defc..c742eecb3b 100644 --- a/library/cpp/http/server/http_ex.cpp +++ b/library/cpp/http/server/http_ex.cpp @@ -103,14 +103,9 @@ bool THttpClientRequestExtension::ProcessHeaders(TBaseServerRequestData& rd, TBl break; case Options: - if (!OptionsAllowed()) { - Output() << "HTTP/1.1 405 Method Not Allowed\r\n\r\n"; - return false; - } else if (!Parse(urlStart, rd)) { - return false; - } - break; - + Output() << "HTTP/1.1 405 Method Not Allowed\r\n\r\n"; + return false; + case NotImplemented: Output() << "HTTP/1.1 501 Not Implemented\r\n\r\n"; return false; |