unfortunately, response body is still needed in full

This commit is contained in:
Yusur 2025-08-10 11:47:27 +02:00
parent add9230a5f
commit 3edf8d37b5

View file

@ -134,10 +134,13 @@ class SassAsyncMiddleware(_MiddlewareFactory):
] ]
}) })
resp_body = b''
async for chunk in _read_file(file_path): async for chunk in _read_file(file_path):
resp_body += chunk
await send({ await send({
'type': 'http.response.body', 'type': 'http.response.body',
'body': chunk 'body': resp_body
}) })
await self.app(scope, receive, send) await self.app(scope, receive, send)