]> git.saurik.com Git - apt.git/blobdiff - methods/https.h
use std::locale::global instead of setlocale
[apt.git] / methods / https.h
index 4d50c5a040cdd1f62508c781876333f71f009446..74b86a24f8016c72ce4e00b87cff8003b3e62b2a 100644 (file)
@@ -11,8 +11,6 @@
 #ifndef APT_HTTPS_H
 #define APT_HTTPS_H
 
-#include <apt-pkg/acquire-method.h>
-
 #include <curl/curl.h>
 #include <iostream>
 #include <stddef.h>
@@ -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();
    };