From c9c47c12975c6a0801bdb4963a442857a7745378 Mon Sep 17 00:00:00 2001 From: chatlanin Date: Fri, 12 Jul 2024 11:48:53 +0300 Subject: [PATCH] fix trs server function --- src/trs/trs.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/trs/trs.hpp b/src/trs/trs.hpp index c1c5716..a28298c 100644 --- a/src/trs/trs.hpp +++ b/src/trs/trs.hpp @@ -123,9 +123,9 @@ namespace trs auto notify(std::string path, std::string key, std::string data) { httplib::Headers headers = { - { "X-token-auth", m_token } + { "TRS-token-auth", m_token }, + { "TRS-server-function", "notify" } }; - return m_cli.Post(path, headers, httplib::Params{{key, data}}); }