From 4a68426629a3ff06acd9458618985affa634c706 Mon Sep 17 00:00:00 2001 From: wqingzhang Date: Mon, 20 Jan 2025 14:44:50 +0800 Subject: [PATCH] =?UTF-8?q?x-ci*=E7=9A=84header=E7=AD=BE=E5=85=A5=E7=AD=BE?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/util/auth_tool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/auth_tool.cpp b/src/util/auth_tool.cpp index 5bf6798..e7a80b5 100644 --- a/src/util/auth_tool.cpp +++ b/src/util/auth_tool.cpp @@ -48,7 +48,7 @@ void AuthTool::FilterAndSetSignHeader( for (std::map::const_iterator itr = headers.begin(); itr != headers.end(); ++itr) { if (! not_sign_headers.count(itr->first) && (sign_headers.count(StringUtil::StringToLower(itr->first)) > 0 || - !strncmp(itr->first.c_str(), "x-cos", 5))) { + !strncmp(itr->first.c_str(), "x-cos", 5) || !strncmp(itr->first.c_str(), "x-ci", 4))) { filted_req_headers->insert(std::make_pair(itr->first, itr->second)); } }