Skip to content

Commit

Permalink
don't clean noprogress when dupping the curl handle
Browse files Browse the repository at this point in the history
- fixes the issue that byLineAsync and byChunkAsync
  currently always show the default curl progressbar
  • Loading branch information
MartinNowak committed Aug 24, 2015
1 parent 3e09aa8 commit ced236f
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions std/net/curl.d
Expand Up @@ -3966,18 +3966,13 @@ struct Curl

with (CurlOption) {
auto tt = TypeTuple!(file, writefunction, writeheader,
headerfunction, infile,
readfunction, ioctldata, ioctlfunction,
seekdata, seekfunction, sockoptdata,
sockoptfunction, opensocketdata,
opensocketfunction, noprogress,
progressdata, progressfunction,
debugdata, debugfunction,
interleavedata,
interleavefunction, chunk_data,
chunk_bgn_function, chunk_end_function,
fnmatch_data, fnmatch_function,
cookiejar, postfields);
headerfunction, infile, readfunction, ioctldata, ioctlfunction,
seekdata, seekfunction, sockoptdata, sockoptfunction,
opensocketdata, opensocketfunction, progressdata,
progressfunction, debugdata, debugfunction, interleavedata,
interleavefunction, chunk_data, chunk_bgn_function,
chunk_end_function, fnmatch_data, fnmatch_function, cookiejar, postfields);

foreach(option; tt)
copy.clear(option);
}
Expand Down

0 comments on commit ced236f

Please sign in to comment.