Skip to content

#142: preserve MIME type in product resource reads - #149

Open
williamleewilliam1-star wants to merge 1 commit into
zerocracy:masterfrom
williamleewilliam1-star:codex/fix-product-resource-mime
Open

williamleewilliam1-star wants to merge 1 commit into
zerocracy:masterfrom
williamleewilliam1-star:codex/fix-product-resource-mime

Conversation

@williamleewilliam1-star

Copy link
Copy Markdown

Product resources advertise text/plain in resources/list but omit it from resources/read. Return the same MIME type with the resource content so clients retain the advertised format.

The regression test lists resources, reads one using its advertised URI, and checks the URI, text and MIME type together. It fails on the unchanged source because mimeType is missing.

Closes #142.

Validation:

AI-assisted contribution; the regression failure and verification commands were executed locally.

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.

resources/read drops the text/plain MIME type that resources/list advertises in src/resources.ts

1 participant