HOLY CRAP these have been broken for who knows how long

This commit is contained in:
Evert Prants 2021-05-05 20:55:47 +03:00
parent b4155a09ce
commit 63e1585bce
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
1 changed files with 2 additions and 2 deletions

View File

@ -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',