Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions backend/app/core/doctransform/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,7 @@ def execute_job(
convert_document(tmp_in, tmp_out, transformer_name)

# Determine content type based on target format
content_type_map = {
"markdown": "text/markdown",
"text": "text/plain",
"html": "text/html",
}
content_type_map = {"markdown": "text/markdown; charset=utf-8"}
content_type = content_type_map.get(target_format, "text/plain")

# upload transformed file and create document record
Expand Down