-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #41 - Add cancelDownload function to DownloadManager #43
base: master
Are you sure you want to change the base?
Conversation
Add cancelDownload() function to cancel a iternal download item.
@@ -160,6 +166,10 @@ const download = (options, callback) => { | |||
|
|||
if (typeof options.onLogin === 'function') { | |||
request.on('login', options.onLogin) | |||
} else if (options.username && options.password) { | |||
request.on('login', (authInfo, callback) => { | |||
callback(options.username, options.password) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think these changes are relevant to 'abort download' functionality, correct me if I'm wrong
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you split all the functionality for aborting a download into a single PR and another for the other functionality related to authentication? please, thank you for your collaboration
Hi there, thanks for all your good Work. Thanks! |
Add cancelDownload() function to cancel a iternal download item.