Fix MatrixHTTPAPI's _send() for empty requests

It now correctly sends an empty JSON object.
This commit is contained in:
Gergely Polonkai 2016-01-13 17:11:58 +01:00
parent 9ff67c008a
commit 48ce66e73d

View File

@ -698,8 +698,8 @@ _send(MatrixHTTPAPI *api,
json_generator_set_root(generator, (JsonNode *)content);
data = json_generator_to_data(generator, &datalen);
} else {
data = g_strdup("");
datalen = 0;
data = g_strdup("{}");
datalen = 2;
}
g_debug("Sending (%s %s): %s", method, url, data);