Skip to content

fix: detect jsx file mime type#413

Open
juliuss007 wants to merge 1 commit into
CortexLM:mainfrom
juliuss007:codex/fix-jsx-mime-53029
Open

fix: detect jsx file mime type#413
juliuss007 wants to merge 1 commit into
CortexLM:mainfrom
juliuss007:codex/fix-jsx-mime-53029

Conversation

@juliuss007
Copy link
Copy Markdown

Summary

  • classify .jsx file attachments as JavaScript text instead of generic binary data
  • add regression coverage for JSX MIME detection

Fixes PlatformNetwork/bounty-challenge#53029

Verification

  • rustc +1.91.1 --test src/cortex-cli/src/run_cmd/mime.rs -o /tmp/cortex_mime_test_53029 && /tmp/cortex_mime_test_53029
  • cargo +1.91.1 check -p cortex-cli --lib
  • git diff --check HEAD^ HEAD
  • cargo +1.91.1 fmt --package cortex-cli --check

Bounty claim: PlatformNetwork/bounty-challenge#53029

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.

[BUG] [v0.0.7] \cortex run --file *.jsx\ falls back to octet-stream

1 participant