fix sendfile on windows
This commit is contained in:
parent
e141cc9e22
commit
2bce7cecfa
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ class BlobFile:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
with open(self.file_path, 'rb') as handle:
|
with open(self.file_path, 'rb') as handle:
|
||||||
return await self.loop.sendfile(writer.transport, handle)
|
return await self.loop.sendfile(writer.transport, handle, count=self.get_length())
|
||||||
|
|
||||||
async def close(self):
|
async def close(self):
|
||||||
while self.writers:
|
while self.writers:
|
||||||
|
|
Loading…
Add table
Reference in a new issue