Fix debug output in HTTPAPI._send()
This commit is contained in:
parent
f37d90e468
commit
97a075d2d2
@ -206,10 +206,12 @@ public class Matrix.HTTPAPI : GLib.Object, Matrix.API {
|
|||||||
generator.set_root(json_content);
|
generator.set_root(json_content);
|
||||||
var json_str = generator.to_data(null);
|
var json_str = generator.to_data(null);
|
||||||
request_data = json_str.data;
|
request_data = json_str.data;
|
||||||
|
request_data[request_data.length] = 0;
|
||||||
} else if (raw_content != null) {
|
} else if (raw_content != null) {
|
||||||
request_data = raw_content.data;
|
request_data = raw_content.data;
|
||||||
} else {
|
} else {
|
||||||
request_data = "{}".data;
|
request_data = "{}".data;
|
||||||
|
request_data[2] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Config.DEBUG) {
|
if (Config.DEBUG) {
|
||||||
|
Loading…
Reference in New Issue
Block a user