mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-25 20:27:34 +08:00
Update HttpSession.cpp
This commit is contained in:
parent
248c9e8f9a
commit
332e8fa180
@ -41,10 +41,7 @@ void HttpSession::Handle_Req_HEAD(ssize_t &content_len){
|
|||||||
void HttpSession::Handle_Req_OPTIONS(ssize_t &content_len)
|
void HttpSession::Handle_Req_OPTIONS(ssize_t &content_len)
|
||||||
{
|
{
|
||||||
//暂时对OPTINS进行200 OK回复
|
//暂时对OPTINS进行200 OK回复
|
||||||
KeyValue headerOut;
|
sendResponse(200, true);
|
||||||
headerOut["Content-Type"] = "application/octet-stream";
|
|
||||||
|
|
||||||
sendResponse(200, true, nullptr, headerOut, nullptr, true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ssize_t HttpSession::onRecvHeader(const char *header,size_t len) {
|
ssize_t HttpSession::onRecvHeader(const char *header,size_t len) {
|
||||||
|
Loading…
Reference in New Issue
Block a user