summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-03-04 19:48:32 +0100
committerErich Eckner <git@eckner.net>2021-03-04 19:48:32 +0100
commitb91d41c816dc062e31d4b454b2b75a1dd903dc80 (patch)
tree6224c8b169484701f7310e3f1f1cf4934603d8d4
parent3cdfc869c38034a7437eab106279b6ecf4bdf2f3 (diff)
downloadanzeige-b91d41c816dc062e31d4b454b2b75a1dd903dc80.tar.xz
input_gadgets.c: set better user-Agent for api.met.no
-rw-r--r--input_gadgets.c2
1 files changed, 1 insertions, 1 deletions
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) {