]> git.saurik.com Git - apt.git/blame - methods/http_main.cc
various small additional tests and testcases
[apt.git] / methods / http_main.cc
CommitLineData
ea542140 1#include <config.h>
3927c6da 2#include <apt-pkg/fileutl.h>
47d278dc 3#include <apt-pkg/error.h>
217d575b 4#include <signal.h>
5f6b130d 5
5f6b130d
MV
6#include "http.h"
7
5f6b130d
MV
8int main()
9{
10 setlocale(LC_ALL, "");
11
217d575b
MV
12 // ignore SIGPIPE, this can happen on write() if the socket
13 // closes the connection (this is dealt with via ServerDie())
14 signal(SIGPIPE, SIG_IGN);
15
5f6b130d 16 HttpMethod Mth;
7b18d559 17
5f6b130d
MV
18 return Mth.Loop();
19}