diff options
author | Daniel Stenberg <daniel@haxx.se> | 2008-04-05 21:13:44 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2008-04-05 21:13:44 +0000 |
commit | ebaf06a74132dc52fa37bb1b05799998c15827c4 (patch) | |
tree | 5e7119dd62a4ebd92017502df15cc489c7559f4a /lib | |
parent | 34d837c2dd1915e4e491460858c3481548ad067f (diff) |
- Alexey Simak fixed curl_easy_reset() to reset the max redirect limit properly
Diffstat (limited to 'lib')
-rw-r--r-- | lib/easy.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/easy.c b/lib/easy.c index 145619c85..65fde81fb 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -715,9 +715,9 @@ void curl_easy_reset(CURL *curl) /* use fread as default function to read input */ data->set.fread_func = (curl_read_callback)fread; - data->set.infilesize = -1; /* we don't know any size */ - data->set.postfieldsize = -1; - + data->set.infilesize = -1; /* we don't know any size */ + data->set.postfieldsize = -1; /* unknown size */ + data->set.maxredirs = -1; /* allow any amount by default */ data->state.current_speed = -1; /* init to negative == impossible */ data->set.httpreq = HTTPREQ_GET; /* Default HTTP request */ @@ -733,7 +733,7 @@ void curl_easy_reset(CURL *curl) /* Set the default size of the SSL session ID cache */ data->set.ssl.numsessions = 5; - data->set.proxyport = 1080; + data->set.proxyport = CURL_DEFAULT_PROXY_PORT; /* from url.h */ data->set.proxytype = CURLPROXY_HTTP; /* defaults to HTTP proxy */ data->set.httpauth = CURLAUTH_BASIC; /* defaults to basic */ data->set.proxyauth = CURLAUTH_BASIC; /* defaults to basic */ |