From 4773930ab9c19057a077b354e46aa416a0cf44cb Mon Sep 17 00:00:00 2001 From: Xiang Yan Date: Thu, 13 May 2021 10:08:47 -0700 Subject: [PATCH] update for aiohttp 3.6 --- sdk/core/azure-core/azure/core/pipeline/transport/_aiohttp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/core/azure-core/azure/core/pipeline/transport/_aiohttp.py b/sdk/core/azure-core/azure/core/pipeline/transport/_aiohttp.py index 35806ad4fc2d..9ae3f96434cb 100644 --- a/sdk/core/azure-core/azure/core/pipeline/transport/_aiohttp.py +++ b/sdk/core/azure-core/azure/core/pipeline/transport/_aiohttp.py @@ -153,8 +153,8 @@ async def send(self, request: HttpRequest, **config: Any) -> Optional[AsyncHttpR try: auto_decompress = self.session.auto_decompress # type: ignore except AttributeError: - # auto_decompress is introduced in Python 3.7. We need this to handle Python 3.6. - auto_decompress = True + # auto_decompress is introduced in aiohttp 3.7. We need this to handle Python 3.6. + auto_decompress = False proxies = config.pop('proxies', None) if proxies and 'proxy' not in config: