From 09473e1050918a882f8ac4bd76138e3534111302 Mon Sep 17 00:00:00 2001 From: Kristian Krsnik Date: Sun, 28 Jul 2024 13:55:35 +0200 Subject: [PATCH] fixed type-error that would crash the request --- src/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index fd4a2b8..2c3d321 100644 --- a/src/main.py +++ b/src/main.py @@ -80,7 +80,7 @@ async def test_data(api_key: str, size: str) -> StreamingResponse: content=generate_data(size, BUFFER_SIZE), media_type='application/octet-stream', headers={ - 'Content-Length': size + 'Content-Length': str(size) } )