bug fixed

This commit is contained in:
xiongziliang 2021-01-02 21:26:23 +08:00
parent 13221ad796
commit 9715787060

View File

@ -544,6 +544,8 @@ void HttpSession::sendResponse(int code,
string str; string str;
str.reserve(256); str.reserve(256);
str += "HTTP/1.1 " ; str += "HTTP/1.1 " ;
str += to_string(code);
str += ' ';
str += getHttpStatusMessage(code) ; str += getHttpStatusMessage(code) ;
str += "\r\n"; str += "\r\n";
for (auto &pr : header) { for (auto &pr : header) {