From 7c16f37d642853298c445916f7cc3376eb26ab4f Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sun, 27 Oct 2019 09:15:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=85=88=E5=88=A4=E6=96=AD=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E7=84=B6=E5=90=8E=E5=86=8D=E5=88=A4=E6=96=ADhttp-flv?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Http/HttpSession.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Http/HttpSession.cpp b/src/Http/HttpSession.cpp index 32cf4c79..ce45f379 100644 --- a/src/Http/HttpSession.cpp +++ b/src/Http/HttpSession.cpp @@ -503,11 +503,6 @@ void HttpSession::Handle_Req_GET(int64_t &content_len) { return; } - //再看看是否为http-flv直播请求 - if(checkLiveFlvStream()){ - //若是,return! - return; - } //事件未被拦截,则认为是http下载请求 auto fullUrl = string(HTTP_SCHEMA) + "://" + _parser["Host"] + _parser.FullUrl(); @@ -557,6 +552,11 @@ void HttpSession::Handle_Req_GET(int64_t &content_len) { //访问的是文件 struct stat tFileStat; if (0 != stat(strFile.data(), &tFileStat)) { + //再看看是否为http-flv直播请求 + if(checkLiveFlvStream()){ + //若是,return! + return; + } //文件不存在 sendNotFound(bClose); throw SockException(bClose ? Err_shutdown : Err_success,"close connection after send 404 not found on file");