No need to configure CURLOPT_WRITEFUNCTION twice
authorMichael Rasmussen <mir@datanom.net>
Fri, 25 Jan 2019 23:15:04 +0000 (00:15 +0100)
committerAndrej Kacian <ticho@claws-mail.org>
Tue, 12 Feb 2019 18:38:10 +0000 (19:38 +0100)
Signed-off-by: Michael Rasmussen <mir@datanom.net>
src/plugins/litehtml_viewer/http.cpp

index ad86191c8b54be618ece203868ff0ae422638077..7472bd7aba47c50b5675c3f90543c56b6424795d 100644 (file)
@@ -80,7 +80,6 @@ GInputStream *http::load_url(const gchar *url, GError **error)
     } else {
        if (!curl) return NULL;
        curl_easy_setopt(curl, CURLOPT_URL, url);
-       curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, curl_write_data);
        curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)&data);
        res = curl_easy_perform(curl);
        if (res != CURLE_OK) {