From b91d41c816dc062e31d4b454b2b75a1dd903dc80 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 4 Mar 2021 19:48:32 +0100 Subject: input_gadgets.c: set better user-Agent for api.met.no --- input_gadgets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input_gadgets.c b/input_gadgets.c index f6c02e5..0a6b6df 100644 --- a/input_gadgets.c +++ b/input_gadgets.c @@ -362,7 +362,7 @@ char *gadgets_retrieve_weather_forecast(MemoryStruct *chunk, time_t *expiration, curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, chunk); curl_easy_setopt(curl_handle, CURLOPT_HEADERFUNCTION, lookForExpirationHeader); curl_easy_setopt(curl_handle, CURLOPT_HEADERDATA, expiration); - curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "wetter-Anzeige wetter@eckner.net"); + curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "git.eckner.net/Erich/anzeige wetter@eckner.net"); res = curl_easy_perform(curl_handle); curl_easy_cleanup(curl_handle); if (res != CURLE_OK) { -- cgit v1.2.3-70-g09d2