From 6ef614e60c2aa2dd86139dff787f046f73777b77 Mon Sep 17 00:00:00 2001 From: Frederik Seiffert Date: Mon, 16 Jan 2023 17:07:32 +0100 Subject: [PATCH] NSURLSession: fix libcurl debug output --- Source/GSEasyHandle.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/GSEasyHandle.m b/Source/GSEasyHandle.m index f51d2c9bf..576a41205 100644 --- a/Source/GSEasyHandle.m +++ b/Source/GSEasyHandle.m @@ -329,7 +329,7 @@ - (void) setDebugOutput: (BOOL)flag { if (flag) { - handleEasyCode(curl_easy_setopt(_rawHandle, CURLOPT_DEBUGDATA, self)); + handleEasyCode(curl_easy_setopt(_rawHandle, CURLOPT_DEBUGDATA, task)); handleEasyCode(curl_easy_setopt(_rawHandle, CURLOPT_DEBUGFUNCTION, curl_debug_function)); }