From b7b48916cd51c59b935577841da15ae9d8fe1e1f Mon Sep 17 00:00:00 2001 From: Luminarys Date: Sun, 22 Oct 2017 21:16:30 -0700 Subject: [PATCH] Use pathname in torrent upload --- src/ui/add_torrent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/add_torrent.js b/src/ui/add_torrent.js index f8928e1..3bb055d 100644 --- a/src/ui/add_torrent.js +++ b/src/ui/add_torrent.js @@ -53,7 +53,7 @@ class AddTorrent extends Component { console.log(socket); const a = document.createElement('a'); 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 { const resp = await fetch(url, {