0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 00:32:35 +01:00

modules/console: Add noparse option to fed event.

This commit is contained in:
Jason Volk 2018-08-25 14:56:10 -07:00
parent 4519c72ff4
commit bbdf21e11a

View file

@ -7263,6 +7263,14 @@ 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