精简代码

This commit is contained in:
xiongziliang
2019-11-30 11:56:40 +08:00
parent 12346f77a4
commit d46b67a5cf
2 changed files with 3 additions and 5 deletions

View File

@@ -299,9 +299,7 @@ void HttpSession::Handle_Req_GET(int64_t &content_len) {
if (!strongSelf) {
return;
}
strongSelf->sendResponse(status_code.data(), bClose,
content_type.empty() ? nullptr : content_type.data(),
responseHeader, body);
strongSelf->sendResponse(status_code.data(), bClose, content_type.data(), responseHeader, body);
});
});
}