mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-29 04:17:55 +01:00
integrated improvements from 1.3.4 (NumberFormatter::append(), DateTimeFormatter::append()
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// HTTPCookie.cpp
|
||||
//
|
||||
// $Id: //poco/Main/Net/src/HTTPCookie.cpp#8 $
|
||||
// $Id: //poco/Main/Net/src/HTTPCookie.cpp#9 $
|
||||
//
|
||||
// Library: Net
|
||||
// Package: HTTP
|
||||
@@ -260,7 +260,7 @@ std::string HTTPCookie::toString() const
|
||||
Timestamp ts;
|
||||
ts += _maxAge*Timestamp::resolution();
|
||||
result.append("; expires=");
|
||||
result.append(DateTimeFormatter::format(ts, DateTimeFormat::HTTP_FORMAT));
|
||||
DateTimeFormatter::append(result, ts, DateTimeFormat::HTTP_FORMAT);
|
||||
}
|
||||
if (_secure)
|
||||
{
|
||||
@@ -298,7 +298,7 @@ std::string HTTPCookie::toString() const
|
||||
if (_maxAge >= 0)
|
||||
{
|
||||
result.append("; Max-Age=\"");
|
||||
result.append(NumberFormatter::format(_maxAge));
|
||||
NumberFormatter::append(result, _maxAge);
|
||||
result.append("\"");
|
||||
}
|
||||
if (_secure)
|
||||
|
||||
Reference in New Issue
Block a user