mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 21:59:50 +01:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
08afa0b747 |
@@ -19,7 +19,7 @@ export default async function credentialedProxyHandler(req, res) {
|
||||
},
|
||||
});
|
||||
|
||||
res.setHeader("Content-Type", contentType);
|
||||
if (contentType) res.setHeader("Content-Type", contentType);
|
||||
return res.status(status).send(data);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ export default async function genericProxyHandler(req, res) {
|
||||
const url = new URL(formatApiCall(widget.type, { endpoint, ...widget }));
|
||||
const [status, contentType, data] = await httpProxy(url);
|
||||
|
||||
res.setHeader("Content-Type", contentType);
|
||||
if (contentType) res.setHeader("Content-Type", contentType);
|
||||
return res.status(status).send(data);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user