Skip to content

fix: avoid setting Content-Type header to "false" when mime lookup fails - #7121

Closed
nmurrell07 wants to merge 1 commit into
expressjs:masterfrom
nmurrell07:fix-content-type-false
Closed

fix: avoid setting Content-Type header to "false" when mime lookup fails#7121
nmurrell07 wants to merge 1 commit into
expressjs:masterfrom
nmurrell07:fix-content-type-false

Conversation

@nmurrell07

Copy link
Copy Markdown

Fixes issue where res.set('Content-Type', ...) sets header to string 'false' if mime-types lookup fails. Updated response.js to fallback to original value.

@krzysdz

Copy link
Copy Markdown
Contributor

Duplicate of#7035

@krzysdzkrzysdz marked this as a duplicate of #7035Mar 21, 2026
@krzysdzkrzysdz closed this Mar 21, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@nmurrell07@krzysdz