mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 14:39:28 -07:00
fix: make nodeinfo requests use HTTPS
This commit is contained in:
parent
549a86c121
commit
c2f9efa698
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue