Update server.js
This commit is contained in:
parent
9469822ef9
commit
0049ae8ec6
@ -88,7 +88,6 @@ app.all(/.*/, (req, res, next) => {
|
|||||||
|
|
||||||
if (methodConfig.headers) {
|
if (methodConfig.headers) {
|
||||||
const headerResult = methodConfig.headers.safeParse(req.headers)
|
const headerResult = methodConfig.headers.safeParse(req.headers)
|
||||||
console.log(headerResult)
|
|
||||||
if (!headerResult.success) {
|
if (!headerResult.success) {
|
||||||
throw new ValidationError(headerResult, errorConfig, context)
|
throw new ValidationError(headerResult, errorConfig, context)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user