Skip to content

Commit 4d23437

Browse files
authored
fix: fix for automatic HEAD routes (#2)
1 parent 548ce7f commit 4d23437

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/dictionary.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ module.exports = class ValidatorDictionary {
3131
[httpPart]: validator
3232
}
3333
}
34+
} else if (this[kSchemas][path][method] == null) {
35+
this[kSchemas][path][method] = {
36+
[httpPart]: validator
37+
}
3438
} else {
3539
this[kSchemas][path][method][httpPart] = validator
3640
}

0 commit comments

Comments
 (0)