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}}); }