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; }