소스 검색

Disable aiohttp's Content-Type checking on JSON parsing by default

master
JustAnotherArchivist 3 년 전
부모
커밋
005999fcb9
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. +5
    -0
      qwarc/aiohttp.py

+ 5
- 0
qwarc/aiohttp.py 파일 보기

@@ -175,6 +175,11 @@ class ClientResponse(aiohttp.client_reqrep.ClientResponse):
self._content = await self._read()
return self._content

async def json(self, **kwargs):
if 'content_type' not in kwargs:
kwargs['content_type'] = None
return (await super().json(**kwargs))

async def release(self):
if not self.closed:
self.connection.reset_raw_data()


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