From 4bed376320ea5e547f4fedb7e6a6f0ec70e6e1f8 Mon Sep 17 00:00:00 2001 From: Michael Rasmussen Date: Sat, 26 Jan 2019 00:15:04 +0100 Subject: [PATCH] No need to configure CURLOPT_WRITEFUNCTION twice Signed-off-by: Michael Rasmussen --- src/plugins/litehtml_viewer/http.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/plugins/litehtml_viewer/http.cpp b/src/plugins/litehtml_viewer/http.cpp index ad86191c8..7472bd7ab 100644 --- 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) { -- 2.25.1