mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 00:07:59 +02:00
integrated improvements from 1.3.4 (NumberFormatter::append(), DateTimeFormatter::append()
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// HTTPRequest.cpp
|
||||
//
|
||||
// $Id: //poco/Main/Net/src/HTTPRequest.cpp#13 $
|
||||
// $Id: //poco/Main/Net/src/HTTPRequest.cpp#14 $
|
||||
//
|
||||
// Library: Net
|
||||
// Package: HTTP
|
||||
@@ -121,7 +121,7 @@ void HTTPRequest::setHost(const std::string& host, Poco::UInt16 port)
|
||||
if (port != HTTPSession::HTTP_PORT)
|
||||
{
|
||||
value.append(":");
|
||||
value.append(NumberFormatter::format(port));
|
||||
NumberFormatter::append(value, port);
|
||||
}
|
||||
setHost(value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user