cookies are now parsed and populated on ctx.cookie by deault
[squeep-api-dingus] / lib / patches / incoming-message.js
index 0b2e259c499ec932708c783dfbd44391b9e93564..237d95e4ed8927bd3f3c46e98ed09ebb65e80f00 100644 (file)
@@ -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()];
   };
 }