Skip to content

Fix fallback for unknown Content-Type values (#7034)#7132

Open
raashish1601 wants to merge 1 commit intoexpressjs:masterfrom
raashish1601:fix/issue-7034-content-type-fallback
Open

Fix fallback for unknown Content-Type values (#7034)#7132
raashish1601 wants to merge 1 commit intoexpressjs:masterfrom
raashish1601:fix/issue-7034-content-type-fallback

Conversation

@raashish1601
Copy link
Copy Markdown

This updates the response/content-type fallback path for #7034 and adds coverage in both res.set and utils tests, plus the runtime /send and /end checks that reproduced the issue.

Validation:

  • npx mocha --require test/support/env --reporter spec --check-leaks test/res.set.js test/utils.js
  • npx eslint lib/response.js lib/utils.js test/res.set.js test/utils.js
  • runtime inline node + supertest check for /send and /end

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.

1 participant