Skip to content

fix: avoid uncaught ERR_HTTP_HEADERS_SENT in res.render - #7585

Closed
hasan19524 wants to merge 5 commits into
expressjs:masterfrom
hasan19524:fix/res-render-headers-sent
Closed

hasan19524 wants to merge 5 commits into
expressjs:masterfrom
hasan19524:fix/res-render-headers-sent

Conversation

@hasan19524

Copy link
Copy Markdown

When the response has already been sent, the default render callback no longer calls self.send(str), preventing an uncaught ERR_HTTP_HEADERS_SENT crash.

@krzysdz

krzysdz commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Duplicate of #7559

@krzysdz krzysdz marked this as a duplicate of #7559 Nov 2, 2026
@krzysdz krzysdz closed this Nov 2, 2026
@krzysdz

krzysdz commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Could you please stop creating duplicate PRs? FYI your PRs include commits from your earlier PRs

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants