mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-10-31 08:39:34 +08:00
bug fixed
This commit is contained in:
parent
13221ad796
commit
9715787060
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user