http: fix incorrect header check
Checklist
-
tests and code linting passes -
the commit message follows commit guidelines
Affected core subsystem(s)
http
Description of change
The const in checkInvalidHeaderChar
should be var:
var invalid = checkInvalidHeaderChar("Mozilla/5.0 (compatible; 㘥)");
// before: invalid == false
// after: invalid == true