Log header validation result in server.js

Added a console.log statement to output the result of header validation in the request handler. Also fixed a minor formatting issue in the cape texture schema file.
This commit is contained in:
Gilles Lazures 2026-01-18 23:00:59 +01:00
parent adddbadbf3
commit 53e58bdb30
2 changed files with 2 additions and 1 deletions

View File

@ -11,4 +11,4 @@ module.exports = {
DELETE: {
headers: headerSchema
}
};
}

View File

@ -88,6 +88,7 @@ app.all(/.*/, (req, res, next) => {
if (methodConfig.headers) {
const headerResult = methodConfig.headers.safeParse(req.headers)
console.log(headerResult)
if (!headerResult.success) {
throw new ValidationError(headerResult, errorConfig, context)
}