diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/getinfo.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/getinfo.c b/lib/getinfo.c index 9aac5e2b8..18274e964 100644 --- a/lib/getinfo.c +++ b/lib/getinfo.c @@ -159,6 +159,19 @@ static CURLcode getinfo_long(struct Curl_easy *data, CURLINFO info, break; } } + /* use another variable for this to allow different values */ + timestr = getenv("CURL_DEBUG_SIZE"); + if(timestr) { + unsigned long val = strtol(timestr, NULL, 10); + switch(info) { + case CURLINFO_HEADER_SIZE: + case CURLINFO_REQUEST_SIZE: + *param_longp = (long)val; + return CURLE_OK; + default: + break; + } + } #endif switch(info) { |