From 8b79c94af7f7cf2e5e5342294bc6e5a908cacabf Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Sat, 28 May 2016 13:22:38 +0200 Subject: 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. --- methods/https.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'methods/https.h') diff --git a/methods/https.h b/methods/https.h index 4d50c5a04..74b86a24f 100644 --- a/methods/https.h +++ b/methods/https.h @@ -11,8 +11,6 @@ #ifndef APT_HTTPS_H #define APT_HTTPS_H -#include - #include #include #include @@ -82,6 +80,7 @@ class HttpsMethod : public ServerMethod HttpsMethod() : ServerMethod("https","1.2",Pipeline | SendConfig) { + curl_global_init(CURL_GLOBAL_SSL); curl = curl_easy_init(); }; -- cgit v1.2.3