net: coap: Update coap context using payload length
When a file is download, `ctc->current` is increaed by the block
size, which is correct for all the blocks except the last one.
Once the download is compelted, ctx->current must match
`ctx->total_size`.
Signed-off-by:
Efrain Calderon <efrain.calderon@aquarobur.com>
Loading
Please sign in to comment