Skip to content

Http: Improve `finish()` callback and code legibility (Fixes #7295)

Checklist
  • make -j4 test (UNIX) or vcbuild test nosign (Windows) passes
  • the commit message follows commit guidelines
Affected core subsystem(s)

http

( Specifically _http_outgoing.js: OutgoingMessage.prototype.end method )

Description of change
  1. Converted callback function to arrow function to take advantage of lexical this.
  2. Gathered code relating to finish event together to improve code clarity.
  3. See #7295 (closed) for further details.

Merge request reports

Loading