mirror of https://github.com/moparisthebest/curl
fix code that is normally #ifdef'ed out
This commit is contained in:
parent
a69ba639ba
commit
f3c0afa5b8
|
@ -75,7 +75,7 @@ int main(void)
|
||||||
*/
|
*/
|
||||||
#ifdef USE_CHUNKED
|
#ifdef USE_CHUNKED
|
||||||
{
|
{
|
||||||
curl_slist *chunk = NULL;
|
struct curl_slist *chunk = NULL;
|
||||||
|
|
||||||
chunk = curl_slist_append(chunk, "Transfer-Encoding: chunked");
|
chunk = curl_slist_append(chunk, "Transfer-Encoding: chunked");
|
||||||
res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk);
|
res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk);
|
||||||
|
@ -98,7 +98,7 @@ int main(void)
|
||||||
/* A less good option would be to enforce HTTP 1.0, but that might also
|
/* A less good option would be to enforce HTTP 1.0, but that might also
|
||||||
have other implications. */
|
have other implications. */
|
||||||
{
|
{
|
||||||
curl_slist *chunk = NULL;
|
struct curl_slist *chunk = NULL;
|
||||||
|
|
||||||
chunk = curl_slist_append(chunk, "Expect:");
|
chunk = curl_slist_append(chunk, "Expect:");
|
||||||
res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk);
|
res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk);
|
||||||
|
|
Loading…
Reference in New Issue