summaryrefslogtreecommitdiff
path: root/methods/http_main.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2016-05-28 13:22:38 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2016-05-28 18:12:02 +0200
commit8b79c94af7f7cf2e5e5342294bc6e5a908cacabf (patch)
treeb5e7c254f6a4aa96203aee262cf5fb13ded87fbb /methods/http_main.cc
parenteceb219c2a64f3f81421c3c6587380b6ae81a530 (diff)
use std::locale::global instead of setlocale
We use a wild mixture of C and C++ ways of generating output, so having a consistent world-view in both styles sounds like a good idea and should help in preventing regressions.
Diffstat (limited to 'methods/http_main.cc')
-rw-r--r--methods/http_main.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/methods/http_main.cc b/methods/http_main.cc
index cd52c42e8..fa183ddb3 100644
--- a/methods/http_main.cc
+++ b/methods/http_main.cc
@@ -7,13 +7,9 @@
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;
-
- return Mth.Loop();
+ return HttpMethod().Loop();
}