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

modules/media/upload: Fix content buffer offset.

This commit is contained in:
Jason Volk 2018-09-04 20:26:55 -07:00
parent bc88a4cf6d
commit a818610e32

View file

@ -73,7 +73,7 @@ post__upload(client &client,
};
copy(buf, request.content);
client.content_consumed += read_all(*client.sock, buf);
client.content_consumed += read_all(*client.sock, buf + client.content_consumed);
assert(client.content_consumed == request.head.content_length);
const size_t written