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:
parent
14608f4c6b
commit
dbba5519f5
1 changed files with 3 additions and 3 deletions
|
@ -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()));
|
||||
|
|
Loading…
Reference in a new issue