]> git.saurik.com Git - apt.git/blob - methods/http_main.cc
* Treat the Important flag like the Essential flag with two differences:
[apt.git] / methods / http_main.cc
1 #include <config.h>
2
3 #include <apt-pkg/fileutl.h>
4 #include <apt-pkg/acquire-method.h>
5 #include <signal.h>
6
7 #include "connect.h"
8 #include "rfc2553emu.h"
9 #include "http.h"
10
11
12 int main()
13 {
14 setlocale(LC_ALL, "");
15
16 // ignore SIGPIPE, this can happen on write() if the socket
17 // closes the connection (this is dealt with via ServerDie())
18 signal(SIGPIPE, SIG_IGN);
19
20 HttpMethod Mth;
21 return Mth.Loop();
22 }