1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

Merge pull request #18279 from RandomShaper/allow-naive-http

Allow body-up-to-EOF HTTP responses
This commit is contained in:
Max Hilbrunner
2018-05-26 19:58:39 +02:00
committed by GitHub
4 changed files with 52 additions and 15 deletions

View File

@@ -212,6 +212,7 @@ Error StreamPeerTCPWinsock::read(uint8_t *p_buffer, int p_bytes, int &r_received
_block(sockfd, true, false);
} else if (read == 0) {
disconnect_from_host();
r_received = total_read;
return ERR_FILE_EOF;
} else {