mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #21637] [CLOSED] fix: correct MIME type detection for TypeScript .ts files #65031
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/21637
Author: @hztBUAA
Created: 2/20/2026
Status: ❌ Closed
Base:
main← Head:fix/ts-mime-type📝 Commits (2)
b5d6c2efix: remove API headers when downloading generated image URLsfcebac0fix: handle non-dict types in citation parser to prevent AttributeError📊 Changes
2 files changed (+10 additions, -4 deletions)
View changed files
📝
backend/open_webui/routers/images.py(+2 -2)📝
backend/open_webui/utils/middleware.py(+8 -2)📄 Description
contributor license agreement
Summary
.ts(TypeScript) files were incorrectly detected asvideo/vnd.dlna.mpeg-ttsby the browser/OS MIME detectionCloses #21454
Test plan
.tsfile uploads are accepted and stored with correct content type🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.