From d555f6038adaeaf1789691bbdb7244cb85f9abed Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sat, 2 Dec 2023 16:43:06 +0800 Subject: [PATCH] =?UTF-8?q?http=E6=96=87=E4=BB=B6=E7=B4=A2=E5=BC=95?= =?UTF-8?q?=E6=94=B9=E7=94=A8=E8=8B=B1=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 防止中文乱码 --- src/Http/HttpFileManager.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Http/HttpFileManager.cpp b/src/Http/HttpFileManager.cpp index b57d6411..428abf85 100644 --- a/src/Http/HttpFileManager.cpp +++ b/src/Http/HttpFileManager.cpp @@ -198,10 +198,10 @@ static bool makeFolderMenu(const string &httpPath, const string &strFullPath, st stringstream ss; ss << "\r\n" "\r\n" - "文件索引\r\n" + "File Index\r\n" "\r\n" "\r\n" - "

文件索引:"; + "

Index of "; ss << httpPath; ss << "

\r\n"; @@ -209,7 +209,7 @@ static bool makeFolderMenu(const string &httpPath, const string &strFullPath, st ss << "
  • "; - ss << "根目录"; + ss << "root"; ss << "
  • \r\n"; ss << "
  • "; - ss << "上级目录"; + ss << "../"; ss << "
  • \r\n"; } @@ -244,7 +244,7 @@ static bool makeFolderMenu(const string &httpPath, const string &strFullPath, st return Parser::parseArgs(str, ";", ","); }); for (auto &pr : virtualPathMap) { - file_map.emplace(pr.first, std::make_pair(string("虚拟目录:") + pr.first, File::absolutePath("", pr.second))); + file_map.emplace(pr.first, std::make_pair(string("virtual path: ") + pr.first, File::absolutePath("", pr.second))); } } int i = 0;