Skip to content

Commit edb45bf

Browse files
authored
25-1: fix safe operation check in hive (#15537) (#15665)
1 parent 8b06bf3 commit edb45bf

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
@@ -4439,7 +4439,7 @@ class TTxMonEvent_OperationsLog : public TTransactionBase<THive> {
44394439

44404440
bool THive::IsSafeOperation(NMon::TEvRemoteHttpInfo::TPtr& ev, const TActorContext& ctx) {
44414441
NMon::TEvRemoteHttpInfo* httpInfo = ev->Get();
4442-
if (httpInfo->Method != HTTP_METHOD_POST) {
4442+
if (httpInfo->GetMethod() != HTTP_METHOD_POST) {
44434443
ctx.Send(ev->Sender, new NMon::TEvRemoteJsonInfoRes("{\"error\":\"only POST method is allowed\"}"));
44444444
return false;
44454445
}

0 commit comments

Comments
 (0)