0
0
Fork 0
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:
Jason Volk 2019-02-19 11:35:11 -08:00
parent 42a41eeb0d
commit b57ef2e8fe

View file

@ -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));