Unverified Commit 4e978803 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Set libcurl user agent

The default user agent is empty, which is not that friendly.
Closes #660
parent 3c1076b3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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 */