Improve logic

This commit is contained in:
halx99 2021-07-20 15:08:31 +08:00
parent b793ff123e
commit f37be8f5c2
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ void HttpCookie::readFile()
cookieInfo.path.assign(ss, ee - ss); cookieInfo.path.assign(ss, ee - ss);
break; break;
case SECURE_INDEX: 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; break;
case EXPIRES_INDEX: case EXPIRES_INDEX:
cookieInfo.expires = static_cast<time_t>(strtoll(ss, nullptr, 10)); cookieInfo.expires = static_cast<time_t>(strtoll(ss, nullptr, 10));