summaryrefslogtreecommitdiff
path: root/drivers/windows/stream_peer_tcp_winsock.cpp
diff options
context:
space:
mode:
authorMax Hilbrunner <mhilbrunner@users.noreply.github.com>2018-05-26 19:58:39 +0200
committerGitHub <noreply@github.com>2018-05-26 19:58:39 +0200
commit130fd6bcb88d7b297b13c3ed20a715b5ab9cce47 (patch)
tree9b5cae7b7cfbf86cb6233057d4e78d7e05c2fa20 /drivers/windows/stream_peer_tcp_winsock.cpp
parent8a9e7ab6a627ef3e0a3d872fb24c9dba744a827e (diff)
parent2587fcccee3b9ee2b934f681f9f3ff921edf096f (diff)
Merge pull request #18279 from RandomShaper/allow-naive-http
Allow body-up-to-EOF HTTP responses
Diffstat (limited to 'drivers/windows/stream_peer_tcp_winsock.cpp')
-rw-r--r--drivers/windows/stream_peer_tcp_winsock.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/windows/stream_peer_tcp_winsock.cpp b/drivers/windows/stream_peer_tcp_winsock.cpp
index cb501ce35d..19c937170b 100644
--- a/drivers/windows/stream_peer_tcp_winsock.cpp
+++ b/drivers/windows/stream_peer_tcp_winsock.cpp
@@ -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 {