Feature: MySpeed widget (#3662)
Some checks failed
Docker / Linting Checks (push) Waiting to run
Docker / Docker Build & Push (push) Blocked by required conditions
Docs / Linting Checks (push) Has been cancelled
Docs / Test Build (push) Has been cancelled
Docs / Build & Deploy (push) Has been cancelled

---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
Mathias Wagner
2024-06-23 21:00:04 +02:00
committed by GitHub
parent f07d595ed9
commit 148511e6f8
8 changed files with 100 additions and 0 deletions

View File

@@ -69,6 +69,8 @@ export default async function credentialedProxyHandler(req, res, map) {
headers.Authorization = `Basic ${Buffer.from(`${widget.username}:${widget.password}`).toString("base64")}`;
} else if (widget.type === "plantit") {
headers.Key = `${widget.key}`;
} else if (widget.type === "myspeed") {
headers.Password = `${widget.password}`;
} else {
headers["X-API-Key"] = `${widget.key}`;
}