From c952bd921f954af539f3b4ec43d36fccffc1c6d6 Mon Sep 17 00:00:00 2001 From: Kristian Krsnik Date: Fri, 12 Apr 2024 17:37:51 +0200 Subject: [PATCH] updated --- src/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index eff6ba8..4d44d66 100644 --- a/src/main.py +++ b/src/main.py @@ -78,7 +78,7 @@ 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), - headers={'Content-Type': 'application/octet-stream'} + media_type='application/octet-stream' ) except MinSizePerRequestError: