- nhttp: some minor code optimizations

This commit is contained in:
svenhoefer
2014-08-19 12:51:23 +02:00
committed by [CST] Focus
parent 25c8b3099c
commit 2c3952cf42
2 changed files with 5 additions and 7 deletions

View File

@@ -96,10 +96,9 @@ void CWebserverConnection::HandleConnection() {
if(string_tolower(Request.HeaderList["Connection"]) == "close"
|| (httprotocol != "HTTP/1.1" && string_tolower(Request.HeaderList["Connection"]) != "keep-alive")
|| !Webserver->CheckKeepAliveAllowedByIP(sock->get_client_ip()))
keep_alive = false;
#else
keep_alive = false;
#endif
keep_alive = false;
// Send a response
Response.SendResponse();