Skip to content

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

Closed
nmurrell07 wants to merge 1 commit intoexpressjs: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 intoexpressjs:masterfrom
nmurrell07:fix-content-type-false

Conversation

@nmurrell07
Copy link

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
Contributor

krzysdz commented Mar 21, 2026

Duplicate of #7035

@krzysdz krzysdz marked this as a duplicate of #7035 Mar 21, 2026
@krzysdz krzysdz closed this Mar 21, 2026
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