Use pathname in torrent upload
This commit is contained in:
parent
98accb302a
commit
b7b48916cd
|
@ -53,7 +53,7 @@ class AddTorrent extends Component {
|
||||||
console.log(socket);
|
console.log(socket);
|
||||||
const a = document.createElement('a');
|
const a = document.createElement('a');
|
||||||
a.href = socket.uri;
|
a.href = socket.uri;
|
||||||
const url = (a.protocol === "ws:" ? "http://" : "https://") + a.host;
|
const url = (a.protocol === "ws:" ? "http://" : "https://") + a.host + a.pathname;
|
||||||
try {
|
try {
|
||||||
const resp = await fetch(url,
|
const resp = await fetch(url,
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user