diff --git a/scripts/http.js b/scripts/http.js index 3abc8f7..51b0010 100644 --- a/scripts/http.js +++ b/scripts/http.js @@ -8,7 +8,7 @@ export function httpGET (link, headers = {}, lback) { const opts = { host: parsed.hostname, port: parsed.port, - path: parsed.path, + path: parsed.pathname, headers: { 'User-Agent': 'Icy Network Back-end (icynet.eu)', Accept: '*/*', @@ -67,7 +67,7 @@ export function httpPOST (link, headers = {}, data) { const opts = { host: parsed.host, port: parsed.port, - path: parsed.path, + path: parsed.pathname, method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded',