From 63e1585bce794803edcb875034809f04237f5aca Mon Sep 17 00:00:00 2001 From: Evert Prants Date: Wed, 5 May 2021 20:55:47 +0300 Subject: [PATCH] HOLY CRAP these have been broken for who knows how long --- scripts/http.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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',