fix: make nodeinfo requests use HTTPS

This commit is contained in:
Yarmo Mackenbach 2023-09-19 12:54:37 +02:00
parent 549a86c121
commit c2f9efa698
No known key found for this signature in database
GPG key ID: 3C57D093219103A3

View file

@ -107,7 +107,7 @@ export const functions = {
} }
const _processNodeinfo = async (/** @type {string} */ domain) => { const _processNodeinfo = async (/** @type {string} */ domain) => {
const nodeinfoRef = await fetch(`http://${domain}/.well-known/nodeinfo`) const nodeinfoRef = await fetch(`https://${domain}/.well-known/nodeinfo`)
.then(res => { .then(res => {
if (res.status !== 200) { if (res.status !== 200) {
throw new Error('HTTP Status was not 200') throw new Error('HTTP Status was not 200')