startend msg sending api thingie

This commit is contained in:
Kima
2023-12-10 20:37:40 +01:00
parent 3484230ced
commit adc8deffa9
3 changed files with 64 additions and 28 deletions

View File

@@ -139,6 +139,9 @@ class KretaClient {
if (!headerMap.containsKey("content-type")) {
headerMap["content-type"] = "application/json";
}
if (url.contains('kommunikacio/uzenetek')) {
headerMap["X-Uzenet-Lokalizacio"] = "hu-HU";
}
}
res = await client.post(Uri.parse(url), headers: headerMap, body: body);