Skip to content
Snippets Groups Projects
Verified Commit 5a6ea8d5 authored by Joe Donofry's avatar Joe Donofry
Browse files

Prepare 0.5.0 release

parent e440f12e
No related branches found
No related tags found
No related merge requests found
Pipeline #1013 canceled
......@@ -32,12 +32,12 @@ option(USE_BUNDLED_OPENSSL "Use the bundled version of OpenSSL."
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.12)
project(matrix_client
VERSION 0.4.1
VERSION 0.5.0
DESCRIPTION "Client API library for Matrix, built on top of Boost.Asio"
HOMEPAGE_URL https://github.com/Nheko-Reborn/mtxclient)
else()
project(matrix_client
VERSION 0.4.1
VERSION 0.5.0
DESCRIPTION "Client API library for Matrix, built on top of Boost.Asio")
endif()
......
......@@ -96,7 +96,7 @@ setup_headers(mtx::http::Session *session,
const std::string &content_type = "",
const std::string &endpoint_namespace = "/_matrix")
{
session->request.set(boost::beast::http::field::user_agent, "mtxclient v0.4.1");
session->request.set(boost::beast::http::field::user_agent, "mtxclient v0.5.0");
session->request.set(boost::beast::http::field::accept_encoding, "gzip,deflate");
session->request.set(boost::beast::http::field::host, session->host);
......
......@@ -44,8 +44,8 @@ from_json(const json &obj, Create &create)
void
to_json(json &obj, const Create &create)
{
obj["creator"] = create.creator;
obj["m.federate"] = create.federate;
obj["creator"] = create.creator;
obj["m.federate"] = create.federate;
if (create.room_version.empty())
obj["room_version"] = "1";
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment