Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

arthurlee
Copy link
Contributor

Add cancelDownload() function to cancel a iternal download item.

Add cancelDownload() function to cancel a iternal download item.
@arthurlee arthurlee changed the title [#41] Add cancelDownload function Add cancelDownload function Oct 9, 2019
@arthurlee arthurlee changed the title Add cancelDownload function Fix #41 - Add cancelDownload function to DownloadManager Oct 9, 2019
@@ -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)
Copy link
Owner

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

Copy link
Owner

@danielnieto danielnieto left a 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

@boredom2
Copy link

Hi there,

thanks for all your good Work.
May I ask what happend to this Request/PR?
I would assume, this Functionality would be very welcome.
At least I would welcome it a lot :)

Thanks!
Christoph

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants