The mirror() sub internally uses the data_callback request option without first checking if the user supplied their own. Imagine a user wants to use data_callback to implement a progress bar, but mirror() silently fails to use it. This should either be documented or preferably mirror() should wrap any user-provided sub.
The
mirror()sub internally uses thedata_callbackrequest option without first checking if the user supplied their own. Imagine a user wants to usedata_callbackto implement a progress bar, butmirror()silently fails to use it. This should either be documented or preferablymirror()should wrap any user-provided sub.