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,11 +134,14 @@ class SassAsyncMiddleware(_MiddlewareFactory):
] ]
}) })
resp_body = b''
async for chunk in _read_file(file_path): async for chunk in _read_file(file_path):
await send({ resp_body += chunk
'type': 'http.response.body',
'body': chunk await send({
}) 'type': 'http.response.body',
'body': resp_body
})
await self.app(scope, receive, send) await self.app(scope, receive, send)