egg-security
egg-security copied to clipboard
feat: Check whether the value is legal Before setting the header
Checklist
- [x]
npm test
passes - [x] tests and/or benchmarks are included
- [x] documentation is changed or added
- [x] commit message follows commit guidelines
Affected core subsystem(s)
Description of change
add utils.checkInvalidHeaderChar
, check whether the value is legal Before setting the header, the illegal header will not be set
@dead-horse 大佬有时间帮忙 review 一下不?