X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/7b18d5592fd5e0bb173e193d1e6693a66065f971..b50dfa6b2dd2d459e0c2746ac9367982b96ffac0:/methods/http_main.cc diff --git a/methods/http_main.cc b/methods/http_main.cc index d7724701a..fa183ddb3 100644 --- a/methods/http_main.cc +++ b/methods/http_main.cc @@ -1,19 +1,15 @@ #include #include +#include #include #include "http.h" int main() { - setlocale(LC_ALL, ""); - // ignore SIGPIPE, this can happen on write() if the socket // closes the connection (this is dealt with via ServerDie()) signal(SIGPIPE, SIG_IGN); - HttpMethod Mth; - - Mth.DropPrivsOrDie(); - return Mth.Loop(); + return HttpMethod().Loop(); }