]>
git.saurik.com Git - apt.git/blob - methods/http_main.cc
2 #include <apt-pkg/fileutl.h>
3 #include <apt-pkg/error.h>
8 int main(int, const char *argv
[])
10 // ignore SIGPIPE, this can happen on write() if the socket
11 // closes the connection (this is dealt with via ServerDie())
12 signal(SIGPIPE
, SIG_IGN
);
13 std::string Binary
= flNotDir(argv
[0]);
14 if (Binary
.find('+') == std::string::npos
&& Binary
!= "http")
15 Binary
.append("+http");
16 return HttpMethod(std::move(Binary
)).Loop();