fixed type-error that would crash the request

This commit is contained in:
Kristian Krsnik 2024-07-28 13:55:35 +02:00
parent 45d197add4
commit 09473e1050
Signed by: Kristian
GPG Key ID: FD1330AC9F909E85

View File

@ -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)
}
)