Skip to content

Commit e71349b

Browse files
vporyadkeblinkov
authored andcommitted
fix safe operation check in hive (#15537)
1 parent 9bdc6d2 commit e71349b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ydb/core/mind/hive/monitoring.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4484,7 +4484,7 @@ class TTxMonEvent_OperationsLog : public TTransactionBase<THive> {
44844484

44854485
bool THive::IsSafeOperation(NMon::TEvRemoteHttpInfo::TPtr& ev, const TActorContext& ctx) {
44864486
NMon::TEvRemoteHttpInfo* httpInfo = ev->Get();
4487-
if (httpInfo->Method != HTTP_METHOD_POST) {
4487+
if (httpInfo->GetMethod() != HTTP_METHOD_POST) {
44884488
ctx.Send(ev->Sender, new NMon::TEvRemoteJsonInfoRes("{\"error\":\"only POST method is allowed\"}"));
44894489
return false;
44904490
}

0 commit comments

Comments
 (0)