summaryrefslogtreecommitdiff
path: root/input_gadgets.c
diff options
context:
space:
mode:
Diffstat (limited to 'input_gadgets.c')
-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);