mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-27 06:43:19 +08:00
- http.request, https.request and get validate each name and value of a flat [name, value, ...] headers array, as Node's _storeHeader does: a name that is not an HTTP token throws ERR_INVALID_HTTP_TOKEN, a value with an invalid character throws ERR_INVALID_CHAR, and an odd length throws ERR_INVALID_ARG_VALUE with the inspected array. The [[name, value], ...] entry form throws the options fence. - A closing socket drops its 'lookup' listeners with its other listeners, so a listener that holds the socket no longer keeps it alive. - The options-record diagnostics snapshot no longer expects the socketPath refusal.