mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 08:31:43 +02:00
Change HTTPCookie to support expiry times in the past.
This commit is contained in:
@@ -256,7 +256,7 @@ std::string HTTPCookie::toString() const
|
||||
result.append("; path=");
|
||||
result.append(_path);
|
||||
}
|
||||
if (_maxAge >= 0)
|
||||
if (_maxAge != -1)
|
||||
{
|
||||
Timestamp ts;
|
||||
ts += _maxAge*Timestamp::resolution();
|
||||
@@ -296,7 +296,7 @@ std::string HTTPCookie::toString() const
|
||||
result.append(_path);
|
||||
result.append("\"");
|
||||
}
|
||||
if (_maxAge >= 0)
|
||||
if (_maxAge != -1)
|
||||
{
|
||||
result.append("; Max-Age=\"");
|
||||
NumberFormatter::append(result, _maxAge);
|
||||
|
Reference in New Issue
Block a user