Skip to content

fix: return correct MIME types for shared demo originals - #453

Merged
suguanYang merged 1 commit into
mainfrom
fix/wangbinqi/demo-original-mime
Oct 5, 2026
Merged

suguanYang merged 1 commit into
mainfrom
fix/wangbinqi/demo-original-mime

Conversation

@suguanYang

Copy link
Copy Markdown
Contributor

Staging verification of the shared Microsoft DOCX found that its catalog MIME type and original download header were application/octet-stream. Slim runtime images do not reliably include an operating system MIME registry.

We resolve original file types through the existing supported-format mapping, so DOCX originals return application/vnd.openxmlformats-officedocument.wordprocessingml.document consistently. Existing published originals receive the corrected catalog metadata and signed response headers on subsequent reads.

Validation: 9 shared-demo HTTP/PostgreSQL contract tests passed, including PDF, DOCX, and uppercase DOCX extensions with the operating system MIME mapping removed. make check passed. The issue was reproduced through real staging original downloads; staging verification of the corrected response remains pending deployment.

@suguanYang
suguanYang marked this pull request as ready for review October 5, 2026 03:23
@suguanYang
suguanYang merged commit f9d6111 into main Oct 5, 2026
6 checks passed
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