fix trs server function

This commit is contained in:
chatlanin 2024-07-12 11:48:53 +03:00
parent ea122f4c9a
commit c9c47c1297

View File

@ -123,9 +123,9 @@ namespace trs
auto notify(std::string path, std::string key, std::string data) auto notify(std::string path, std::string key, std::string data)
{ {
httplib::Headers headers = { 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}}); return m_cli.Post(path, headers, httplib::Params{{key, data}});
} }