From 609006d06efe8e4cea242ac6b63c992ad4f845f8 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Thu, 16 May 2019 17:34:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=80=A7=E8=83=BD=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Http/HttpSession.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Http/HttpSession.cpp b/src/Http/HttpSession.cpp index 59251ea6..fa9ad868 100644 --- a/src/Http/HttpSession.cpp +++ b/src/Http/HttpSession.cpp @@ -317,7 +317,6 @@ inline bool HttpSession::Handle_Req_GET(int64_t &content_len) { GET_CONFIG_AND_REGISTER(bool,enableVhost,Http::kEnableVhost); GET_CONFIG_AND_REGISTER(string,rootPath,Http::kRootPath); string strFile = enableVhost ? rootPath + "/" + _mediaInfo._vhost + _parser.Url() :rootPath + _parser.Url(); - replace(strFile,"//","/"); bool bClose = (strcasecmp(_parser["Connection"].data(),"close") == 0) || ( ++_iReqCnt > reqCnt); do{ @@ -327,7 +326,6 @@ inline bool HttpSession::Handle_Req_GET(int64_t &content_len) { if(!indexFile.empty()){ //发现该文件夹下有index文件 strFile = strFile + "/" + indexFile; - replace(strFile,"//","/"); break; } //生成文件夹菜单索引