Browse Source

Merge pull request #50362 from timothyqiu/http-eof

Fix unicode invalid skip error in AssetLib
Rémi Verschelde 4 years ago
parent
commit
a0d800e967
1 changed files with 1 additions and 0 deletions
  1. 1 0
      core/io/http_client_tcp.cpp

+ 1 - 0
core/io/http_client_tcp.cpp

@@ -590,6 +590,7 @@ PackedByteArray HTTPClientTCP::read_response_body_chunk() {
 				}
 			}
 			if (err != OK) {
+				ret.resize(_offset);
 				break;
 			}
 		}