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 = {
|
const opts = {
|
||||||
host: parsed.hostname,
|
host: parsed.hostname,
|
||||||
port: parsed.port,
|
port: parsed.port,
|
||||||
path: parsed.path,
|
path: parsed.pathname,
|
||||||
headers: {
|
headers: {
|
||||||
'User-Agent': 'Icy Network Back-end (icynet.eu)',
|
'User-Agent': 'Icy Network Back-end (icynet.eu)',
|
||||||
Accept: '*/*',
|
Accept: '*/*',
|
||||||
@ -67,7 +67,7 @@ export function httpPOST (link, headers = {}, data) {
|
|||||||
const opts = {
|
const opts = {
|
||||||
host: parsed.host,
|
host: parsed.host,
|
||||||
port: parsed.port,
|
port: parsed.port,
|
||||||
path: parsed.path,
|
path: parsed.pathname,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/x-www-form-urlencoded',
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
|
Reference in New Issue
Block a user