diff options
| author | Alexey Efimov <[email protected]> | 2022-05-11 10:23:02 +0300 |
|---|---|---|
| committer | Alexey Efimov <[email protected]> | 2022-05-11 10:23:02 +0300 |
| commit | 3548eb45b1cf56fc87c6e908d3446b633f68d42e (patch) | |
| tree | 87cf172a7b893bde4fc389de25d9c9767cbf49fd | |
| parent | e045b52a8d9f5ffb1465f3b46465e9b44869be1b (diff) | |
fix content-type in login/logout pages KIKIMR-14881
ref:3158aec15f3a26061cc72246b6ad6c1ae6a19d38
| -rw-r--r-- | ydb/core/security/login_page.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ydb/core/security/login_page.cpp b/ydb/core/security/login_page.cpp index 2622643c86d..bff5d178708 100644 --- a/ydb/core/security/login_page.cpp +++ b/ydb/core/security/login_page.cpp @@ -78,7 +78,7 @@ public: return ReplyErrorAndPassAway("400 Bad Request", "Invalid method"); } - if (Request.GetHeader("Content-Type") != "application/json") { + if (Request.GetHeader("Content-Type").Before(';') != "application/json") { return ReplyErrorAndPassAway("400 Bad Request", "Invalid Content-Type"); } @@ -297,7 +297,7 @@ public: return ReplyErrorAndPassAway("400 Bad Request", "Invalid method"); } - if (Request.GetHeader("Content-Type") != "application/json") { + if (Request.GetHeader("Content-Type").Before(';') != "application/json") { return ReplyErrorAndPassAway("400 Bad Request", "Invalid Content-Type"); } |
