Update HttpSession.cpp

This commit is contained in:
CharleyWangHZ 2021-06-25 11:17:21 +08:00 committed by GitHub
parent 248c9e8f9a
commit 332e8fa180
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,10 +41,7 @@ void HttpSession::Handle_Req_HEAD(ssize_t &content_len){
void HttpSession::Handle_Req_OPTIONS(ssize_t &content_len)
{
//暂时对OPTINS进行200 OK回复
KeyValue headerOut;
headerOut["Content-Type"] = "application/octet-stream";
sendResponse(200, true, nullptr, headerOut, nullptr, true);
sendResponse(200, true);
}
ssize_t HttpSession::onRecvHeader(const char *header,size_t len) {