Skip to content

http: add Object.freeze for status code

A mutable http.STATUS_CODES maybe cause some undefined behavior in userland. This change is to freeze the status codes for robustness.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

http

Merge request reports

Loading