Fix body handling for aiohttp

This commit is contained in:
Felix Yan 2020-09-23 18:01:40 +08:00
parent d83106fdee
commit 1cb633d99d
No known key found for this signature in database
GPG key ID: 786C63F330D7CB92

View file

@ -42,7 +42,7 @@ class AiohttpSession(BaseSession):
if json is not None:
kwargs['json'] = json
if body is not None:
kwargs['body'] = body
kwargs['data'] = body
try:
logger.debug('send request', method=method, url=url, kwargs=kwargs)