From 333aaa6116e280bd8e1af2cc03a1fabba8e923b1 Mon Sep 17 00:00:00 2001 From: Luminarys Date: Sun, 18 Feb 2018 14:17:27 -0800 Subject: [PATCH] Use token parameter for file downloads --- src/ui/torrent_details.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/torrent_details.js b/src/ui/torrent_details.js index 8c82c48..da2b2c4 100644 --- a/src/ui/torrent_details.js +++ b/src/ui/torrent_details.js @@ -28,7 +28,7 @@ import selectTorrent, { import { updateResource } from '../actions/resources'; import { formatBitrate } from '../bitrate'; -const dlURI = (uri, token, id) => `${uri.replace('ws', 'http')}/dl/${id}?password=${encodeURIComponent(token)}`; +const dlURI = (uri, token, id) => `${uri.replace('ws', 'http')}/dl/${id}?token=${encodeURIComponent(token)}`; function basename(path) { const parts = path.split("/");