0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

ircd::resource: Use json::empty_object instead of literal; cleanup debuglog.

This commit is contained in:
Jason Volk 2018-04-04 18:40:06 -07:00
parent 14608f4c6b
commit dbba5519f5

View file

@ -443,7 +443,7 @@ catch(const std::bad_function_call &e)
ircd::resource::response::response(client &client,
const http::code &code)
:response{client, json::object{"{}"}, code}
:response{client, json::object{json::empty_object}, code}
{
}
@ -693,7 +693,7 @@ ircd::resource::response::response(client &client,
log::debug
{
"socket(%p) local[%s] remote[%s] HTTP %d %s in %ld$us; %s %zu content",
"socket(%p) local[%s] remote[%s] HTTP %d %s in %ld$us; %s %zd content",
client.sock.get(),
string(local(client)),
string(remote(client)),
@ -701,7 +701,7 @@ ircd::resource::response::response(client &client,
http::status(code),
request_time,
content_type,
content_length,
ssize_t(content_length),
};
assert(written == size(head.completed()));