Skip to content

refactor: use res.headersSent#225

Merged
bjohansebas merged 1 commit intoexpressjs:v2from
bjohansebas:refactor
Apr 8, 2025
Merged

refactor: use res.headersSent#225
bjohansebas merged 1 commit intoexpressjs:v2from
bjohansebas:refactor

Conversation

@bjohansebas
Copy link
Copy Markdown
Member

We no longer support older versions, and it's not advisable to use undocumented APIs.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

index.js:93

  • Consider adding tests to verify that cases where res.headersSent is true are correctly handled, ensuring the refactored behavior works as expected on supported Node.js versions.
if (!res.headersSent) {

@bjohansebas bjohansebas merged commit 21ab1b7 into expressjs:v2 Apr 8, 2025
16 checks passed
@bjohansebas bjohansebas deleted the refactor branch April 8, 2025 13:26
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.

4 participants