From d47993f974c4181e35625ec7abb5b612601a4769 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 4 Sep 2024 15:58:33 -0700 Subject: [PATCH] Fix --- src/widgets/tdarr/proxy.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/widgets/tdarr/proxy.js b/src/widgets/tdarr/proxy.js index 0ba263490..9e26fdc06 100644 --- a/src/widgets/tdarr/proxy.js +++ b/src/widgets/tdarr/proxy.js @@ -21,8 +21,9 @@ export default async function tdarrProxyHandler(req, res) { logger.debug("Invalid or missing widget for service '%s' in group '%s'", service, group); return res.status(400).json({ error: "Invalid proxy service type" }); } - const headers = {} - headers["content-type"] = "application/json" + const headers = { + "content-type": "application/json", + }; if (widget.key) { headers["x-api-key"] = `${widget.key}`; } @@ -36,7 +37,7 @@ export default async function tdarrProxyHandler(req, res) { docID: "statistics", }, }), - headers: headers + headers, }); if (status !== 200) {