Use token parameter for file downloads

master
Luminarys 2018-02-18 14:17:27 -08:00
parent ff86be7276
commit 333aaa6116
1 changed files with 1 additions and 1 deletions

View File

@ -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("/");