소스 검색

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):


불러오는 중...
취소
저장