X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fhttp.c;h=4b7b27f89cddbf40d35e5a521ac4170d59991439;hb=f1a018e08d77e30cda40735c0abb44b778f6893e;hp=f2351c9e31c16d2f76dda020a590a68c71b18b38;hpb=5969698ff6028947e097927e2391406481a36290;p=ppastats.git diff --git a/src/http.c b/src/http.c index f2351c9..4b7b27f 100644 --- a/src/http.c +++ b/src/http.c @@ -91,6 +91,7 @@ static char *fetch_url(const char *url) curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, cbk_curl); curl_easy_setopt(curl, CURLOPT_WRITEDATA, content); curl_easy_setopt(curl, CURLOPT_USERAGENT, "ppastats/0.0"); + curl_easy_setopt(curl, CURLOPT_TRANSFER_ENCODING, 1); if (curl_easy_perform(curl) == CURLE_OK) { curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &code);