HOLY CRAP these have been broken for who knows how long
This commit is contained in:
parent
b4155a09ce
commit
63e1585bce
@ -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',
|
||||
|
Reference in New Issue
Block a user