Skip to content

Commit

Permalink
limit change to only Markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
P. Taylor Goetz committed May 23, 2024
1 parent 99e3f9b commit 30683dd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions backend/app/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@

def _guess_mimetype(file_name: str, file_bytes: bytes) -> str:
"""Guess the mime-type of a file based on its name or bytes."""

if file_name.endswith(".yml") or file_name.endswith(".yaml"):
return "text/yaml"
# Guess based on the file extension
mime_type, _ = mimetypes.guess_type(file_name)

Expand Down
1 change: 0 additions & 1 deletion backend/tests/unit_tests/agent_executor/test_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ def test_list_of_supported_mimetypes() -> None:
"text/html",
"text/markdown",
"text/plain",
"text/yaml",
]


Expand Down

0 comments on commit 30683dd

Please sign in to comment.