Browse Source

Fix unicode invalid skip error in AssetLib

(cherry picked from commit 0caaaf4018feddb1d3e6e75870df282715efd276)
Haoyu Qiu 4 years ago
parent
commit
9184f58dc7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      core/io/http_client.cpp

+ 1 - 0
core/io/http_client.cpp

@@ -662,6 +662,7 @@ PoolByteArray HTTPClient::read_response_body_chunk() {
 				}
 				}
 			}
 			}
 			if (err != OK) {
 			if (err != OK) {
+				ret.resize(_offset);
 				break;
 				break;
 			}
 			}
 		}
 		}