diff --git a/server/modules/routing/avrorouter/avro_client.cc b/server/modules/routing/avrorouter/avro_client.cc index 1ff7a2515..a847353e6 100644 --- a/server/modules/routing/avrorouter/avro_client.cc +++ b/server/modules/routing/avrorouter/avro_client.cc @@ -586,6 +586,8 @@ GWBUF* read_avro_json_schema(std::string avrofile, std::string dir) std::stringstream ss; ss << file.rdbuf(); std::string text = ss.str(); + mxs::rtrim(text); + text += '\n'; mxs::Buffer buffer(std::vector(text.begin(), text.end())); rval = buffer.release(); }