Skip to content

Commit 0956af9

Browse files
authored
Merge pull request #1793 from MegaManSec/j2
fix: use cookie schema for cookie noValidate check
2 parents b48ade6 + f6260f9 commit 0956af9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compose.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1635,7 +1635,7 @@ export const composeHandler = ({
16351635
fnLiteral +=
16361636
`for(const k of Object.keys(cookieValue))` +
16371637
`c.cookie[k].value=cookieValue[k]\n`
1638-
} else if (validator.body?.schema?.noValidate !== true) {
1638+
} else if (validator.cookie?.schema?.noValidate !== true) {
16391639
fnLiteral +=
16401640
`if(validator.cookie.Check(cookieValue)===false){` +
16411641
validation.validate('cookie', 'cookieValue') +

0 commit comments

Comments
 (0)