Merge pull request #1929 from zimathias/fix-keepalive-non-support

Send the Connection: close response header
This commit is contained in:
Patrick Niklaus 2016-01-25 19:17:47 -05:00
commit 7ddf0226c6

View File

@ -103,7 +103,11 @@ boost::asio::const_buffer reply::status_to_buffer(const reply::status_type statu
return boost::asio::buffer(http_bad_request_string);
}
reply::reply() : status(ok) {}
reply::reply() : status(ok)
{
// We do not currently support keep alive. Always set 'Connection: close'.
headers.emplace_back("Connection", "close");
}
}
}
}