Fix debug output in HTTPAPI._send()

This commit is contained in:
Gergely Polonkai 2016-03-07 09:51:49 +01:00 committed by Gergely Polonkai
parent f37d90e468
commit 97a075d2d2
1 changed files with 2 additions and 0 deletions

View File

@ -206,10 +206,12 @@ public class Matrix.HTTPAPI : GLib.Object, Matrix.API {
generator.set_root(json_content);
var json_str = generator.to_data(null);
request_data = json_str.data;
request_data[request_data.length] = 0;
} else if (raw_content != null) {
request_data = raw_content.data;
} else {
request_data = "{}".data;
request_data[2] = 0;
}
if (Config.DEBUG) {