BACKENDS: NETWORKING: Properly signal end of downloaded file

This commit is contained in:
Eugene Sandulenko 2021-11-18 21:45:58 +01:00
parent 570c77f309
commit 5df691a3a6
No known key found for this signature in database
GPG key ID: 014D387312D34F08

View file

@ -105,7 +105,7 @@ void SessionRequest::finishSuccess() {
_complete = true;
_success = true;
if (_callback && !_localFile) { // If localfile is present, we already called the callback
if (_callback) { // If localfile is present, contentStream is empty, so it is fine
_response.buffer = _contentsStream.getData();
_response.len = _contentsStream.size();
_response.eos = true;