Use token parameter for file downloads

This commit is contained in:
Luminarys 2018-02-18 14:17:27 -08:00
parent ff86be7276
commit 333aaa6116

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