Fix greptile review

This commit is contained in:
Sameer Kankute 2026-05-01 17:46:20 +05:30
parent 46ba48e69a
commit 475220ecc6
No known key found for this signature in database

View file

@ -228,6 +228,12 @@ async def _process_binary_request(
elif ".pdf" in file_id_lower:
content_type = "application/pdf"
if not isinstance(content, bytes):
raise TypeError(
"aretrieve_container_file_content expected bytes, got "
f"{type(content).__name__}"
)
return Response(
content=content,
headers=dict(fastapi_response.headers),