mirror of https://github.com/axmolengine/axmol.git
Improve logic
This commit is contained in:
parent
b793ff123e
commit
f37be8f5c2
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue