Skip to content

Commit 9210648

Browse files
committed
fix: don't overwrite error statusCode
1 parent dc671c0 commit 9210648

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ function proxy (req, resOrSocket, options, onRes, onError) {
164164
callback(err)
165165
}
166166
} else {
167-
err.statusCode = 500
168167
callback(err)
169168
}
170169
})

0 commit comments

Comments
 (0)