Skip to content

Conversation

@Dhairya3391
Copy link

Summary

  • fix(sendStatus): add explicit BigInt validation
  • Prevents obscure TypeError when BigInt values are passed
  • Ensures consistency with existing status() validation

Test Plan

  • Added test cases for BigInt(200) and BigInt(999)
  • Verified all tests pass via npm test
  • Confirmed no regressions in existing functionality

Fixes #6756

Ensure status codes in sendStatus() are valid integers between 100-999, addressing PR feedback about oversized numeric values passing validation.
@abhisekp
Copy link

Likely a duplicate of #6758

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants