diff options
Diffstat (limited to 'library/cpp/http')
| -rw-r--r-- | library/cpp/http/server/http_ex.cpp | 11 | ||||
| -rw-r--r-- | library/cpp/http/server/http_ex.h | 4 |
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 fc43d2defc7..c742eecb3bb 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 4c3887996c5..1ef43ea4fd5 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> |
