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) {