HttpResponse add Connection: close header

This commit is contained in:
aozhiwei 2018-11-30 09:43:51 +08:00
parent c9d4c5699c
commit cf3251c48c

View File

@ -294,6 +294,7 @@ namespace a8
{
std::string response = a8::Format(
"HTTP/1.1 %d OK\r\n"
"Connection: close\r\n"
"Content-Type: text/plain\r\n"
"Content-Length: %d\r\n\r\n%s",
{