Changed HttpResponse default connection type to keep-alive
This commit is contained in:
parent
84382cad0b
commit
40001534ed
@ -56,7 +56,7 @@ namespace fr
|
||||
|
||||
//Add in required headers if they're missing
|
||||
if(header_data.find("connection") == header_data.end())
|
||||
response += "connection: close_socket\r\n";
|
||||
response += "connection: keep-alive\r\n";
|
||||
if(header_data.find("content-type") == header_data.end())
|
||||
response += "content-type: text/html\r\n";
|
||||
if(header_data.find("content-length") == header_data.end())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user