mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 09:35:54 -08:00
check that content type exists before setting it
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user