Skip to content

[BUG] [v0.0.7] cortex run --file *.gql falls back to application/octet-stream #53309

@Rwhiteman525

Description

@Rwhiteman525

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

OS: Windows 10

Screenshots

Image

Steps to Reproduce

  1. Create schema.graphql with a minimal type Query { _ } or empty file.
  2. Run: cortex run "Review schema" --file schema.graphql.
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions