summaryrefslogtreecommitdiff
path: root/src/HttpServerResponseCommand.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/HttpServerResponseCommand.cc')
-rw-r--r--src/HttpServerResponseCommand.cc31
1 files changed, 13 insertions, 18 deletions
diff --git a/src/HttpServerResponseCommand.cc b/src/HttpServerResponseCommand.cc
index 727166e3..4f55012b 100644
--- a/src/HttpServerResponseCommand.cc
+++ b/src/HttpServerResponseCommand.cc
@@ -44,27 +44,22 @@
namespace aria2 {
-HttpServerResponseCommand::HttpServerResponseCommand
-(cuid_t cuid,
- const std::shared_ptr<HttpServer>& httpServer,
- DownloadEngine* e,
- const std::shared_ptr<SocketCore>& socket)
- : AbstractHttpServerResponseCommand(cuid, httpServer, e, socket)
-{}
+HttpServerResponseCommand::HttpServerResponseCommand(
+ cuid_t cuid, const std::shared_ptr<HttpServer>& httpServer,
+ DownloadEngine* e, const std::shared_ptr<SocketCore>& socket)
+ : AbstractHttpServerResponseCommand(cuid, httpServer, e, socket)
+{
+}
-HttpServerResponseCommand::~HttpServerResponseCommand()
-{}
+HttpServerResponseCommand::~HttpServerResponseCommand() {}
-void HttpServerResponseCommand::afterSend
-(const std::shared_ptr<HttpServer>& httpServer,
- DownloadEngine* e)
+void HttpServerResponseCommand::afterSend(
+ const std::shared_ptr<HttpServer>& httpServer, DownloadEngine* e)
{
- if(httpServer->supportsPersistentConnection()) {
- A2_LOG_INFO(fmt("CUID#%" PRId64 " - Persist connection.",
- getCuid()));
- e->addCommand
- (make_unique<HttpServerCommand>(getCuid(), httpServer, e,
- httpServer->getSocket()));
+ if (httpServer->supportsPersistentConnection()) {
+ A2_LOG_INFO(fmt("CUID#%" PRId64 " - Persist connection.", getCuid()));
+ e->addCommand(make_unique<HttpServerCommand>(getCuid(), httpServer, e,
+ httpServer->getSocket()));
}
}