修改常量命名

This commit is contained in:
ziyue
2021-10-16 16:58:03 +08:00
parent 8769ea83a9
commit f5f58196b5
12 changed files with 19 additions and 19 deletions

View File

@@ -537,7 +537,7 @@ void HttpSession::sendResponse(int code,
HttpSession::KeyValue &headerOut = const_cast<HttpSession::KeyValue &>(header);
headerOut.emplace(kDate, dateStr());
headerOut.emplace(kServer, SERVER_NAME);
headerOut.emplace(kServer, kServerName);
headerOut.emplace(kConnection, bClose ? "close" : "keep-alive");
if(!bClose){
string keepAliveString = "timeout=";