瀏覽代碼

Fix ClientResponse._read returning more than nbytes if the entire response fits into the first block fed into the parser

tags/v0.2.2^0
JustAnotherArchivist 4 年之前
父節點
當前提交
4d9e4d8fe8
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      qwarc/aiohttp.py

+ 2
- 0
qwarc/aiohttp.py 查看文件

@@ -147,6 +147,8 @@ class ClientResponse(aiohttp.client_reqrep.ClientResponse):

if payload.exc:
raise Exception from payload.exc
if nbytes is not None:
return payload.data.getvalue()[:nbytes]
return payload.data.getvalue()

async def read(self, nbytes = None):


Loading…
取消
儲存