0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-17 23:40:57 +01:00

modules/console: Move this branch to prevent any error'ing before it.

This commit is contained in:
Jason Volk 2018-08-28 15:59:08 -07:00
parent d70ef25711
commit ed9d8d72ee

View file

@ -7152,6 +7152,14 @@ console_cmd__fed__event(opt &out, const string_view &line)
request.wait(out.timeout);
request.get();
// Use this option to debug from the actual http response
// content sent from the remote without any further action.
if(has(op, "noparse"))
{
out << string_view{request.in.content} << std::endl;
return true;
}
const json::object &response
{
request
@ -7253,14 +7261,6 @@ console_cmd__fed__public_rooms(opt &out, const string_view &line)
request.wait(out.timeout);
request.get();
// Use this option to debug from the actual http response
// content sent from the remote without any further action.
if(has(op, "noparse"))
{
out << string_view{request.in.content} << std::endl;
return true;
}
const json::object &response
{
request