Skip to content

Conversation

@Wisp-xd
Copy link

@Wisp-xd Wisp-xd commented Dec 9, 2025

This PR adds a test case to reproduce the issue described in #6941.

When passing undefined to res.redirect():

  1. It prints a express deprecated warning to the console.
  2. But it still sends a 302 response with an invalid Location: undefined header, instead of throwing an error.

This test expects a 500 error, so it currently FAILS, confirming the unexpected behavior.

Ref: #6941

Copy link
Member

@bjohansebas bjohansebas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution, but we already have another PR (#6404) ready for this change, which will be released for Express v6. It's not necessary to add tests for a deprecation

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants