projects
/
squeep-api-dingus
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'v2.1-dev'
[squeep-api-dingus]
/
lib
/
patches
/
incoming-message.js
diff --git
a/lib/patches/incoming-message.js
b/lib/patches/incoming-message.js
index 0b2e259c499ec932708c783dfbd44391b9e93564..237d95e4ed8927bd3f3c46e98ed09ebb65e80f00 100644
(file)
--- 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()];
};
}