fixed type-error that would crash the request
This commit is contained in:
parent
45d197add4
commit
09473e1050
@ -80,7 +80,7 @@ async def test_data(api_key: str, size: str) -> StreamingResponse:
|
|||||||
content=generate_data(size, BUFFER_SIZE),
|
content=generate_data(size, BUFFER_SIZE),
|
||||||
media_type='application/octet-stream',
|
media_type='application/octet-stream',
|
||||||
headers={
|
headers={
|
||||||
'Content-Length': size
|
'Content-Length': str(size)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user