mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
- nhttp: some minor code optimizations
This commit is contained in:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user