Skip to content

http: fix incorrect header check

Rodrigo Muino Tomonari requested to merge github/fork/peakji/master into master
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

Merge request reports

Loading