From 1cd5770ee66dbf7339e82d8423df7947cd87ae86 Mon Sep 17 00:00:00 2001 From: Xiang Yan Date: Mon, 8 Feb 2021 09:28:35 -0800 Subject: [PATCH] Update _bigger_block_size_http_adapters.py --- .../core/pipeline/transport/_bigger_block_size_http_adapters.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdk/core/azure-core/azure/core/pipeline/transport/_bigger_block_size_http_adapters.py b/sdk/core/azure-core/azure/core/pipeline/transport/_bigger_block_size_http_adapters.py index 1c1e338421a9..bbe18b12e90a 100644 --- a/sdk/core/azure-core/azure/core/pipeline/transport/_bigger_block_size_http_adapters.py +++ b/sdk/core/azure-core/azure/core/pipeline/transport/_bigger_block_size_http_adapters.py @@ -41,5 +41,7 @@ def get_connection(self, url, proxies=None): conn = super(BiggerBlockSizeHTTPAdapter, self).get_connection(url, proxies) system_version = tuple(sys.version_info)[:3] if system_version[:2] >= (3, 7): + if not conn.conn_kw: + conne.conn_kw = {} conn.conn_kw['blocksize'] = 32768 return conn