1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +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

@@ -297,6 +297,7 @@ Error StreamPeerTCPPosix::read(uint8_t *p_buffer, int p_bytes, int &r_received,
status = STATUS_NONE;
peer_port = 0;
peer_host = IP_Address();
r_received = total_read;
return ERR_FILE_EOF;
} else {