summaryrefslogtreecommitdiff
path: root/src/HttpProxyRequestCommand.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/HttpProxyRequestCommand.cc')
-rw-r--r--src/HttpProxyRequestCommand.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/HttpProxyRequestCommand.cc b/src/HttpProxyRequestCommand.cc
index 2143f398..f639ac70 100644
--- a/src/HttpProxyRequestCommand.cc
+++ b/src/HttpProxyRequestCommand.cc
@@ -37,6 +37,7 @@
#include "Request.h"
#include "SocketCore.h"
#include "SocketRecvBuffer.h"
+#include "a2functional.h"
namespace aria2 {
@@ -55,9 +56,9 @@ HttpProxyRequestCommand::HttpProxyRequestCommand
HttpProxyRequestCommand::~HttpProxyRequestCommand() {}
-Command* HttpProxyRequestCommand::getNextCommand()
+std::unique_ptr<Command> HttpProxyRequestCommand::getNextCommand()
{
- return new HttpProxyResponseCommand
+ return make_unique<HttpProxyResponseCommand>
(getCuid(), getRequest(), getFileEntry(), getRequestGroup(),
getHttpConnection(), getDownloadEngine(), getSocket());
}