Created
December 23, 2019 14:22
-
-
Save zavr-1/e34e0eb724497029a09949fea32a8854 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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