projects
/
ppastats.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d17ef88
)
set transfer encoding to gzip as recommended by LP documentation.
author
Jean-Philippe Orsini
<jeanfi@gmail.com>
Thu, 10 May 2012 12:15:03 +0000
(12:15 +0000)
committer
Jean-Philippe Orsini
<jeanfi@gmail.com>
Thu, 10 May 2012 12:15:03 +0000
(12:15 +0000)
src/http.c
patch
|
blob
|
history
diff --git
a/src/http.c
b/src/http.c
index
f2351c9
..
4b7b27f
100644
(file)
--- 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);