summaryrefslogtreecommitdiff
path: root/methods/http.cc
diff options
context:
space:
mode:
Diffstat (limited to 'methods/http.cc')
-rw-r--r--methods/http.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/methods/http.cc b/methods/http.cc
index 85350785e..09bca47dd 100644
--- a/methods/http.cc
+++ b/methods/http.cc
@@ -397,7 +397,7 @@ static ResultState UnwrapHTTPConnect(std::string Host, int Port, URI Proxy, std:
if (In.WriteSpace())
{
// Maybe there is actual data already read, if so we need to buffer it
- std::unique_ptr<HttpConnectFd> NewFd(new HttpConnectFd());
+ auto NewFd = std::make_unique<HttpConnectFd>();
In.Write(NewFd->Buffer);
NewFd->UnderlyingFd = std::move(Fd);
Fd = std::move(NewFd);