From 1a4d4997da3039ca3d7e3a67a590a51a9e0b6f3c Mon Sep 17 00:00:00 2001 From: Kristian Krsnik Date: Fri, 12 Apr 2024 17:25:49 +0200 Subject: [PATCH] set content type --- src/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index d94ebde..eff6ba8 100644 --- a/src/main.py +++ b/src/main.py @@ -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: