This commit is contained in:
j3d1 2023-07-01 22:30:28 +02:00
parent 4140214c81
commit 08f723e9da

View file

@ -31,7 +31,7 @@ class ServerSet {
if (this.unreachable_neighbors.queryUnreachable(server)) { if (this.unreachable_neighbors.queryUnreachable(server)) {
continue continue
} }
const url = "http://" + server + target // TODO https const url = "https://" + server + target // TODO https
return await fetch(url, { return await fetch(url, {
method: 'GET', method: 'GET',
headers: { headers: {
@ -59,7 +59,7 @@ class ServerSet {
if (this.unreachable_neighbors.queryUnreachable(server)) { if (this.unreachable_neighbors.queryUnreachable(server)) {
continue continue
} }
const url = "http://" + server + target // TODO https const url = "https://" + server + target // TODO https
return await fetch(url, { return await fetch(url, {
method: 'POST', method: 'POST',
headers: { headers: {
@ -89,7 +89,7 @@ class ServerSet {
if (this.unreachable_neighbors.queryUnreachable(server)) { if (this.unreachable_neighbors.queryUnreachable(server)) {
continue continue
} }
const url = "http://" + server + target // TODO https const url = "https://" + server + target // TODO https
return await fetch(url, { return await fetch(url, {
method: 'PATCH', method: 'PATCH',
headers: { headers: {
@ -119,7 +119,7 @@ class ServerSet {
if (this.unreachable_neighbors.queryUnreachable(server)) { if (this.unreachable_neighbors.queryUnreachable(server)) {
continue continue
} }
const url = "http://" + server + target // TODO https const url = "https://" + server + target // TODO https
return await fetch(url, { return await fetch(url, {
method: 'PUT', method: 'PUT',
headers: { headers: {
@ -149,7 +149,7 @@ class ServerSet {
if (this.unreachable_neighbors.queryUnreachable(server)) { if (this.unreachable_neighbors.queryUnreachable(server)) {
continue continue
} }
const url = "http://" + server + target // TODO https const url = "https://" + server + target // TODO https
return await fetch(url, { return await fetch(url, {
method: 'DELETE', method: 'DELETE',
headers: { headers: {