mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 15:30:52 +01:00
ircd::resource::response: Avoid call to write empty content here.
This commit is contained in:
parent
42a41eeb0d
commit
b57ef2e8fe
1 changed files with 3 additions and 1 deletions
|
@ -1071,7 +1071,9 @@ ircd::resource::response::response(client &client,
|
|||
// All content gets sent
|
||||
const size_t written
|
||||
{
|
||||
client.write_all(content)
|
||||
size(content)?
|
||||
client.write_all(content):
|
||||
0
|
||||
};
|
||||
|
||||
assert(written == size(content));
|
||||
|
|
Loading…
Reference in a new issue