Skip to content

Instantly share code, notes, and snippets.

@zavr-1
Created December 23, 2019 14:22
Show Gist options
  • Save zavr-1/e34e0eb724497029a09949fea32a8854 to your computer and use it in GitHub Desktop.
Save zavr-1/e34e0eb724497029a09949fea32a8854 to your computer and use it in GitHub Desktop.
if ('string' === typeof body) return Buffer.byteLength(body);
return typeof this.res.hasHeader === 'function'
if (Array.isArray(val)) val = val.map(v => typeof v === 'string' ? v : String(v));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment