summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-06-13 21:35:22 +0200
committerDaniel Friesel <derf@finalrewind.org>2022-06-13 21:35:22 +0200
commit4e9788033709511a4e2dd94852777cfb216a4634 (patch)
tree1a7c0e481c9ff914327490121bb7af20d805e49e
parent3c1076b31e2e4e3429a5c3d334d555e549fb72d2 (diff)
Set libcurl user agent
The default user agent is empty, which is not that friendly. Closes #660
-rw-r--r--src/imlib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/imlib.c b/src/imlib.c
index 0accbdc..cd57f59 100644
--- a/src/imlib.c
+++ b/src/imlib.c
@@ -895,6 +895,7 @@ static char *feh_http_load_image(char *url)
curl_easy_setopt(curl, CURLOPT_WRITEDATA, sfp);
ebuff = emalloc(CURL_ERROR_SIZE);
curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, ebuff);
+ curl_easy_setopt(curl, CURLOPT_USERAGENT, PACKAGE "/" VERSION);
curl_easy_setopt(curl, CURLOPT_FAILONERROR, 1L);
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
#if LIBCURL_VERSION_NUM >= 0x072000 /* 07.32.0 */