Project
cortex
Description
GraphQL schema and operation files use .graphql / .gql. utils/mime.rs maps both to application/graphql. run_cmd/mime.rs has no such arms, so these attachments are misclassified as binary.
Error Message
Debug Logs
System Information
Screenshots
Steps to Reproduce
- Create schema.graphql with a minimal type Query { _ } or empty file.
- Run: cortex run "Review schema" --file schema.graphql.
- Confirm no graphql/gql in run_cmd/mime.rs.
Expected Behavior
Align with utils/mime.rs (application/graphql).
Actual Behavior
application/octet-stream.
Additional Context
Code evidence: utils/mime.rs — "graphql" | "gql" => "application/graphql"; run_cmd/mime.rs — neither token in the match.
Project
cortex
Description
GraphQL schema and operation files use .graphql / .gql. utils/mime.rs maps both to application/graphql. run_cmd/mime.rs has no such arms, so these attachments are misclassified as binary.
Error Message
Debug Logs
System Information
Screenshots
Steps to Reproduce
Expected Behavior
Align with utils/mime.rs (application/graphql).
Actual Behavior
application/octet-stream.
Additional Context
Code evidence: utils/mime.rs — "graphql" | "gql" => "application/graphql"; run_cmd/mime.rs — neither token in the match.