Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Do not pass numeric arguments to res.send (#242)
Fixes #239. res.send when receiving a sole numeric argument will set thee statuc code to that number. This breaks HTTP communication as some numbers are not valid HTTP response codes. For example, in the original issue the code is being set to 2. Which probably comes from the UNKNOWN error response of an RPC call. This makes that the function is reported as having a `connection error`.
- Loading branch information