summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-07-11 09:33:51 +0200
committerGitHub <noreply@github.com>2021-07-11 09:33:51 +0200
commita0d800e967d6980fefc21b6d6aa1d86138004a5c (patch)
treeeca52612c520287ad2fb1afef8e68182e877345c
parent88e35c88a1a37ed6c925111b8019587ac092912a (diff)
parent0caaaf4018feddb1d3e6e75870df282715efd276 (diff)
Merge pull request #50362 from timothyqiu/http-eof
Fix unicode invalid skip error in AssetLib
-rw-r--r--core/io/http_client_tcp.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/io/http_client_tcp.cpp b/core/io/http_client_tcp.cpp
index f9b3165a07..f291086808 100644
--- a/core/io/http_client_tcp.cpp
+++ b/core/io/http_client_tcp.cpp
@@ -590,6 +590,7 @@ PackedByteArray HTTPClientTCP::read_response_body_chunk() {
}
}
if (err != OK) {
+ ret.resize(_offset);
break;
}
}