diff --git a/requester.cpp b/requester.cpp index 7cc85a3..6bc8299 100644 --- a/requester.cpp +++ b/requester.cpp @@ -24,9 +24,9 @@ size_t requester::write_data(char *buf, size_t sz, size_t nmemb, void *user_data } requester::requester() { - curl_global_init(CURL_GLOBAL_ALL); - _h = curl_easy_init(); - curl_easy_setopt(_h, CURLOPT_WRITEFUNCTION, write_data); + curl_global_init(CURL_GLOBAL_ALL); + _h = curl_easy_init(); + curl_easy_setopt(_h, CURLOPT_WRITEFUNCTION, write_data); } std::string requester::get(const std::string &url) {