summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-03-04 19:47:42 +0100
committerErich Eckner <git@eckner.net>2021-03-04 19:47:42 +0100
commit3cdfc869c38034a7437eab106279b6ecf4bdf2f3 (patch)
tree9e2d3ca97facd08936abd551519e532baa9093e2
parent0b014a106d7ff28da9a494af0699fb31c7153a6c (diff)
downloadanzeige-3cdfc869c38034a7437eab106279b6ecf4bdf2f3.tar.xz
input_gadgets.c: allow all kind of compressions for api.met.no
-rw-r--r--input_gadgets.c1
1 files changed, 1 insertions, 0 deletions
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);