Fix unicode invalid skip error in AssetLib

(cherry picked from commit 0caaaf4018)
This commit is contained in:
Haoyu Qiu 2021-07-11 12:14:08 +08:00 committed by Rémi Verschelde
parent cca999c007
commit 859dba0dd6
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 3 additions and 1 deletions

View File

@ -691,8 +691,10 @@ PoolByteArray HTTPClient::read_response_body_chunk() {
body_left -= rec;
}
}
if (err != OK)
if (err != OK) {
ret.resize(_offset);
break;
}
}
}