Removed extra spaces in HTTP TS output, fixed socket class to work with unidirectional files
This commit is contained in:
parent
6b962aae9f
commit
d413866911
2 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue