From 97a075d2d2bdbe9bb939ddd331dc12c743fcc319 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Mon, 7 Mar 2016 09:51:49 +0100 Subject: [PATCH] Fix debug output in HTTPAPI._send() --- src/matrix-http-api.vala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/matrix-http-api.vala b/src/matrix-http-api.vala index e3178fd..e654805 100644 --- a/src/matrix-http-api.vala +++ b/src/matrix-http-api.vala @@ -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) {