From 97157870605506a1364d5841d9de2c4c6d9e9b18 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sat, 2 Jan 2021 21:26:23 +0800 Subject: [PATCH] bug fixed --- src/Http/HttpSession.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Http/HttpSession.cpp b/src/Http/HttpSession.cpp index d119f19e..9ca6e739 100644 --- a/src/Http/HttpSession.cpp +++ b/src/Http/HttpSession.cpp @@ -544,6 +544,8 @@ void HttpSession::sendResponse(int code, string str; str.reserve(256); str += "HTTP/1.1 " ; + str += to_string(code); + str += ' '; str += getHttpStatusMessage(code) ; str += "\r\n"; for (auto &pr : header) {