commit 822b482afa172bf7621a8c9b49706d8f697fc4d6
parent 5446663475a6fe5881ae15f39cf503ace1cd984b
Author: Michael Rasmussen <mir@datanom.net>
Date: Sat, 26 Jan 2019 00:15:04 +0100
No need to configure CURLOPT_WRITEFUNCTION twice
Signed-off-by: Michael Rasmussen <mir@datanom.net>
Diffstat:
1 file changed, 0 insertions(+), 1 deletion(-)
diff --git a/src/plugins/litehtml_viewer/http.cpp b/src/plugins/litehtml_viewer/http.cpp
@@ -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) {