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:
parent
bc88a4cf6d
commit
a818610e32
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue