From d413866911cbdcf51be132ea66ffa91e2b474cf2 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Wed, 28 Dec 2016 16:42:46 +0100 Subject: [PATCH] Removed extra spaces in HTTP TS output, fixed socket class to work with unidirectional files --- lib/socket.cpp | 2 +- src/output/output_httpts.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/socket.cpp b/lib/socket.cpp index 1ff5b049..4fda3f80 100644 --- a/lib/socket.cpp +++ b/lib/socket.cpp @@ -400,7 +400,7 @@ Socket::Connection::Connection(std::string host, int port, bool nonblock){ /// and when the socket is closed manually. /// \returns True if socket is connected, false otherwise. bool Socket::Connection::connected() const{ - return (sock >= 0) || ((pipes[0] >= 0) && (pipes[1] >= 0)); + return (sock >= 0) || ((pipes[0] >= 0) || (pipes[1] >= 0)); } /// Returns the time this socket has been connected. diff --git a/src/output/output_httpts.cpp b/src/output/output_httpts.cpp index c65b076f..9872767e 100644 --- a/src/output/output_httpts.cpp +++ b/src/output/output_httpts.cpp @@ -43,7 +43,7 @@ namespace Mist { return; } H.protocol = "HTTP/1.0";//Force HTTP/1.0 because some devices just don't understand chunked replies - H.StartResponse(H, myConn); + H.StartResponse(H, myConn); parseData = true; wantRequest = false; }