X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpatches%2Fincoming-message.js;h=237d95e4ed8927bd3f3c46e98ed09ebb65e80f00;hb=refs%2Ftags%2Fv2.1.0;hp=0b2e259c499ec932708c783dfbd44391b9e93564;hpb=f944684c37532e67a7d28e34909178435cba03a5;p=squeep-api-dingus diff --git a/lib/patches/incoming-message.js b/lib/patches/incoming-message.js index 0b2e259..237d95e 100644 --- a/lib/patches/incoming-message.js +++ b/lib/patches/incoming-message.js @@ -12,6 +12,6 @@ if (typeof IncomingMessage.getHeader !== 'function') { if (typeof name !== 'string') { throw new TypeError('\'name\' must be a string'); } - return this.headers && this.headers[name.toLowerCase()]; + return this.headers?.[name.toLowerCase()]; }; }