projects
/
ppastats.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23b6365
)
CURLOPT_TRANSFER_ENCODING supported since Curl > 7.21.6
author
Jean-Philippe Orsini
<jeanfi@gmail.com>
Sat, 30 Jun 2012 16:45:29 +0000
(16:45 +0000)
committer
Jean-Philippe Orsini
<jeanfi@gmail.com>
Sat, 30 Jun 2012 16:45:29 +0000
(16:45 +0000)
src/http.c
patch
|
blob
|
history
diff --git
a/src/http.c
b/src/http.c
index
4baceef
..
7fda573
100644
(file)
--- a/
src/http.c
+++ b/
src/http.c
@@
-91,7
+91,10
@@
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");
+#ifdef CURLOPT_TRANSFER_ENCODING
+ /* added since Curl 7.21.7 */
curl_easy_setopt(curl, CURLOPT_TRANSFER_ENCODING, 1);
+#endif
if (curl_easy_perform(curl) == CURLE_OK) {
curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &code);