From 3cdfc869c38034a7437eab106279b6ecf4bdf2f3 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 4 Mar 2021 19:47:42 +0100 Subject: input_gadgets.c: allow all kind of compressions for api.met.no --- input_gadgets.c | 1 + 1 file changed, 1 insertion(+) diff --git a/input_gadgets.c b/input_gadgets.c index 6b196ac..f6c02e5 100644 --- a/input_gadgets.c +++ b/input_gadgets.c @@ -357,6 +357,7 @@ char *gadgets_retrieve_weather_forecast(MemoryStruct *chunk, time_t *expiration, } curl_easy_setopt(curl_handle, CURLOPT_URL, "https://api.met.no/weatherapi/locationforecast/2.0/?lat=50.9336&lon=11.5621"); curl_easy_setopt(curl_handle, CURLOPT_FOLLOWLOCATION, 1L); + curl_easy_setopt(curl_handle, CURLOPT_ACCEPT_ENCODING, ""); curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, WriteMemoryCallback); curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, chunk); curl_easy_setopt(curl_handle, CURLOPT_HEADERFUNCTION, lookForExpirationHeader); -- cgit v1.2.3-54-g00ecf