Fix missing \r after Connection:keep-alive header in HTTP requests
This commit is contained in:
parent
dd1322385b
commit
87f8ee21b1
@ -142,7 +142,7 @@ namespace fr
|
||||
|
||||
//Add in required headers if they're missing
|
||||
if(header_data.find("Connection") == header_data.end())
|
||||
request += "Connection: keep-alive\n";
|
||||
request += "Connection: keep-alive\r\n";
|
||||
if(header_data.find("Host") == header_data.end())
|
||||
request += "Host: " + host + "\r\n";
|
||||
if(!body.empty())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user