mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 00:07:59 +02:00
Remove trailing whitespace (#3668)
This commit is contained in:
@@ -63,11 +63,11 @@ class TimeRequestHandler: public HTTPRequestHandler
|
||||
/// Return a HTML document with the current date and time.
|
||||
{
|
||||
public:
|
||||
TimeRequestHandler(const std::string& format):
|
||||
TimeRequestHandler(const std::string& format):
|
||||
_format(format)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void handleRequest(HTTPServerRequest& request, HTTPServerResponse& response)
|
||||
{
|
||||
Application& app = Application::instance();
|
||||
@@ -83,7 +83,7 @@ public:
|
||||
{
|
||||
app.logger().information("No client certificate available.");
|
||||
}
|
||||
|
||||
|
||||
Timestamp now;
|
||||
std::string dt(DateTimeFormatter::format(now, _format));
|
||||
|
||||
@@ -97,7 +97,7 @@ public:
|
||||
ostr << dt;
|
||||
ostr << "</p></body></html>";
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
std::string _format;
|
||||
};
|
||||
@@ -118,7 +118,7 @@ public:
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
std::string _format;
|
||||
};
|
||||
@@ -148,7 +148,7 @@ public:
|
||||
{
|
||||
Poco::Net::initializeSSL();
|
||||
}
|
||||
|
||||
|
||||
~HTTPSTimeServer()
|
||||
{
|
||||
Poco::Net::uninitializeSSL();
|
||||
@@ -160,7 +160,7 @@ protected:
|
||||
loadConfiguration(); // load default configuration files, if present
|
||||
ServerApplication::initialize(self);
|
||||
}
|
||||
|
||||
|
||||
void uninitialize()
|
||||
{
|
||||
ServerApplication::uninitialize();
|
||||
@@ -169,7 +169,7 @@ protected:
|
||||
void defineOptions(OptionSet& options)
|
||||
{
|
||||
ServerApplication::defineOptions(options);
|
||||
|
||||
|
||||
options.addOption(
|
||||
Option("help", "h", "display help information on command line arguments")
|
||||
.required(false)
|
||||
@@ -204,7 +204,7 @@ protected:
|
||||
// get parameters from configuration file
|
||||
unsigned short port = (unsigned short) config().getInt("HTTPSTimeServer.port", 9443);
|
||||
std::string format(config().getString("HTTPSTimeServer.format", DateTimeFormat::SORTABLE_FORMAT));
|
||||
|
||||
|
||||
// set-up a server socket
|
||||
SecureServerSocket svs(port);
|
||||
// set-up a HTTPServer instance
|
||||
@@ -218,7 +218,7 @@ protected:
|
||||
}
|
||||
return Application::EXIT_OK;
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
bool _helpRequested;
|
||||
};
|
||||
|
Reference in New Issue
Block a user