aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorconterouz <conterouz@yandex-team.com>2023-05-31 16:27:34 +0300
committerconterouz <conterouz@yandex-team.com>2023-05-31 16:27:34 +0300
commitc6cc16a082ccfb808746450519b396809e644c17 (patch)
tree2403ffa729fa2c2fa6d10e35f8bef97fed068e40
parenta627cca9e4a275aca28ec11fbda9977a6cfed8af (diff)
downloadydb-c6cc16a082ccfb808746450519b396809e644c17.tar.gz
Revert "Поддержать метод OPTIONS во внешнем uaas"
-rw-r--r--library/cpp/http/server/http_ex.cpp11
-rw-r--r--library/cpp/http/server/http_ex.h4
2 files changed, 3 insertions, 12 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;
diff --git a/library/cpp/http/server/http_ex.h b/library/cpp/http/server/http_ex.h
index 4c3887996c..1ef43ea4fd 100644
--- a/library/cpp/http/server/http_ex.h
+++ b/library/cpp/http/server/http_ex.h
@@ -8,10 +8,6 @@ class THttpClientRequestExtension: public TClientRequest {
public:
bool Parse(char* req, TBaseServerRequestData& rd);
bool ProcessHeaders(TBaseServerRequestData& rd, TBlob& postData);
-protected:
- virtual bool OptionsAllowed() {
- return false;
- }
};
template <class TRequestData>