mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
activate the new memory limit tests if requested
only set cookiejar if selected
This commit is contained in:
parent
e6011e33a6
commit
73500267ee
@ -2505,6 +2505,11 @@ operate(struct Configurable *config, int argc, char *argv[])
|
||||
curl_free(env);
|
||||
curl_memdebug("memdump");
|
||||
}
|
||||
env = curl_getenv("CURL_MEMLIMIT");
|
||||
if(env) {
|
||||
curl_memlimit(atoi(env));
|
||||
curl_free(env);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* we get libcurl info right away */
|
||||
@ -3057,6 +3062,7 @@ operate(struct Configurable *config, int argc, char *argv[])
|
||||
config->headerfile?&heads:NULL);
|
||||
curl_easy_setopt(curl, CURLOPT_COOKIEFILE, config->cookiefile);
|
||||
/* cookie jar was added in 7.9 */
|
||||
if(config->cookiejar)
|
||||
curl_easy_setopt(curl, CURLOPT_COOKIEJAR, config->cookiejar);
|
||||
/* cookie session added in 7.9.7 */
|
||||
curl_easy_setopt(curl, CURLOPT_COOKIESESSION, config->cookiesession);
|
||||
|
Loading…
Reference in New Issue
Block a user