Skip to content

fix: isolate MIME type overrides per middleware instance - #76

Merged
chenjiahan merged 2 commits into
mainfrom
chenjiahan/isolate-mime-types
Oct 22, 2026
Merged

chenjiahan merged 2 commits into
mainfrom
chenjiahan/isolate-mime-types

Conversation

@chenjiahan

@chenjiahan chenjiahan commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Summary

Custom mimeTypes currently mutate mrmime's shared dictionary, so creating one middleware instance can change the Content-Type returned by another. Keep custom mappings and the USDZ fallback local to each instance, retaining mrmime's defaults and existing charset handling. Normalize each extension once and read the shared dictionary without modifying it to avoid duplicate parsing.

Add one regression case across the existing framework matrix to verify conflicting overrides, a default instance, and the unchanged shared lookup.

Related Links

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-21T03:57:55.922881Z 66d46cf PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chenjiahan
chenjiahan merged commit ae368f1 into main Oct 22, 2026
5 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/isolate-mime-types branch October 22, 2026 02:57
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