From a6be2495675771256570a75841815d4e3de80934 Mon Sep 17 00:00:00 2001
From: Daniel Friesel <derf@finalrewind.org>
Date: Wed, 25 Jan 2012 13:27:34 +0100
Subject: [PATCH] imlib.c: Set CURLOPT_VERBOSE when built with DEBUG

---
 src/imlib.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/imlib.c b/src/imlib.c
index 4bbc196..6d718f5 100644
--- a/src/imlib.c
+++ b/src/imlib.c
@@ -265,6 +265,9 @@ char *feh_http_load_image(char *url)
 	if (fd != -1) {
 		sfp = fdopen(fd, "w+");
 		if (sfp != NULL) {
+#ifdef DEBUG
+			curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
+#endif
 			curl_easy_setopt(curl, CURLOPT_URL, url);
 			curl_easy_setopt(curl, CURLOPT_WRITEDATA, sfp);
 			ebuff = emalloc(CURL_ERROR_SIZE);
-- 
GitLab