unfortunately, response body is still needed in full
This commit is contained in:
parent
add9230a5f
commit
3edf8d37b5
1 changed files with 7 additions and 4 deletions
|
|
@ -134,11 +134,14 @@ class SassAsyncMiddleware(_MiddlewareFactory):
|
|||
]
|
||||
})
|
||||
|
||||
resp_body = b''
|
||||
async for chunk in _read_file(file_path):
|
||||
await send({
|
||||
'type': 'http.response.body',
|
||||
'body': chunk
|
||||
})
|
||||
resp_body += chunk
|
||||
|
||||
await send({
|
||||
'type': 'http.response.body',
|
||||
'body': resp_body
|
||||
})
|
||||
|
||||
await self.app(scope, receive, send)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue