]> git.saurik.com Git - apt.git/blame - methods/http_main.cc
test/integration/test-ubuntu-bug-346386-apt-get-update-paywall: use downloadfile()
[apt.git] / methods / http_main.cc
CommitLineData
ea542140
DK
1#include <config.h>
2
217d575b 3#include <signal.h>
5f6b130d 4
5f6b130d
MV
5#include "http.h"
6
5f6b130d
MV
7int main()
8{
9 setlocale(LC_ALL, "");
10
217d575b
MV
11 // ignore SIGPIPE, this can happen on write() if the socket
12 // closes the connection (this is dealt with via ServerDie())
13 signal(SIGPIPE, SIG_IGN);
14
5f6b130d
MV
15 HttpMethod Mth;
16 return Mth.Loop();
17}