]> git.saurik.com Git - apt.git/blobdiff - methods/http.cc
drop privileges in copy:// method as we do for file://
[apt.git] / methods / http.cc
index ce697a338f494cdfcbfbefa2fa90de58bb175ed3..78b20e66d304cde4a383bf6f91143d89e4bc3e40 100644 (file)
@@ -778,9 +778,9 @@ bool HttpMethod::Configuration(string Message)
    return true;
 }
                                                                        /*}}}*/
-ServerState * HttpMethod::CreateServerState(URI uri)                   /*{{{*/
+std::unique_ptr<ServerState> HttpMethod::CreateServerState(URI const &uri)/*{{{*/
 {
-   return new HttpServerState(uri, this);
+   return std::unique_ptr<ServerState>(new HttpServerState(uri, this));
 }
                                                                        /*}}}*/
 void HttpMethod::RotateDNS()                                           /*{{{*/