set content type

This commit is contained in:
Kristian Krsnik 2024-04-12 17:25:49 +02:00
parent 34d6aa5a36
commit 1a4d4997da
Signed by: Kristian
GPG Key ID: FD1330AC9F909E85

View File

@ -77,7 +77,8 @@ async def test_data(api_key: str, request: Request, size: str) -> StreamingRespo
return StreamingResponse(
status_code=status.HTTP_200_OK,
content=generate_data(size, BUFFER_SIZE)
content=generate_data(size, BUFFER_SIZE),
headers={'Content-Type': 'application/octet-stream'}
)
except MinSizePerRequestError: