mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-19 11:09:50 +00:00
Run pre-commit hooks over existing codebase
Co-Authored-By: Ben Phelps <ben@phelps.io>
This commit is contained in:
parent
fa50bbad9c
commit
19c25713c4
387 changed files with 4785 additions and 4109 deletions
|
@ -29,7 +29,7 @@ export default async function transmissionProxyHandler(req, res) {
|
|||
if (!headers) {
|
||||
headers = {
|
||||
"content-type": "application/json",
|
||||
}
|
||||
};
|
||||
cache.put(`${headerCacheKey}.${service}`, headers);
|
||||
}
|
||||
|
||||
|
@ -70,7 +70,7 @@ export default async function transmissionProxyHandler(req, res) {
|
|||
|
||||
if (status !== 200) {
|
||||
logger.error("Error getting data from Transmission: %d. Data: %s", status, data);
|
||||
return res.status(500).send({error: {message:"Error getting data from Transmission", url, data}});
|
||||
return res.status(500).send({ error: { message: "Error getting data from Transmission", url, data } });
|
||||
}
|
||||
|
||||
if (contentType) res.setHeader("Content-Type", contentType);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue