From 332e8fa18050b5ae7dbb288a4429adc92158a46e Mon Sep 17 00:00:00 2001 From: CharleyWangHZ <57120416+CharleyWangHZ@users.noreply.github.com> Date: Fri, 25 Jun 2021 11:17:21 +0800 Subject: [PATCH] Update HttpSession.cpp --- src/Http/HttpSession.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Http/HttpSession.cpp b/src/Http/HttpSession.cpp index b83b6ce4..aaf87fef 100644 --- a/src/Http/HttpSession.cpp +++ b/src/Http/HttpSession.cpp @@ -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) {