diff --git a/cocos/network/HttpCookie.cpp b/cocos/network/HttpCookie.cpp index 5ad5f01ad4..a36db8ca97 100644 --- a/cocos/network/HttpCookie.cpp +++ b/cocos/network/HttpCookie.cpp @@ -75,7 +75,7 @@ void HttpCookie::readFile() cookieInfo.path.assign(ss, ee - ss); break; case SECURE_INDEX: - cookieInfo.secure = cxx20::ic::iequals(cxx17::string_view { ss, (size_t)(ee - ss) }, "TRUE"_sv); + cookieInfo.secure = cxx17::string_view { ss, (size_t)(ee - ss) } == "TRUE"_sv; break; case EXPIRES_INDEX: cookieInfo.expires = static_cast(strtoll(ss, nullptr, 10));