This repository has been archived by the owner on Dec 11, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This feature broke again after PR #8325. My fault for not catching it during review. This PR fixes the code that is now on `master`. Addresses these comments: - #8446 (comment) - #8146 (comment) 52 It is better to add the '?download=true' querystring param with `url.parse` and `url.format` since blindly tacking on a '?download=true' can lead to invalid URLs. A couple examples: magnet:?a=b&c=d?download=true should use &download=true instead https://example.com/file.torrent#ix=1?download=true should not add a query param after a hash Also, this names the downloaded file correctly, which didn't seem to be working either after PR #8325.
- Loading branch information