We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9bf886 commit 0d5a178Copy full SHA for 0d5a178
index.js
@@ -47,7 +47,7 @@ function impl (req, resOrSocket, headOrNil, {
47
}, onProxyError) {
48
let hasError = false
49
50
- function onError (err, statusCode = (err && err.statusCode) || 500) {
+ function onError (err, statusCode = err.statusCode || 500) {
51
if (hasError) {
52
return
53
}
0 commit comments