From c6b5bb4c117bf4d1f18bf2e14003541d72e7766b Mon Sep 17 00:00:00 2001 From: Alvie Zhang Date: Tue, 19 Apr 2022 13:25:16 +0800 Subject: [PATCH] Fix SSL connection handshake charset not respecting connection configuration --- aiomysql/connection.py | 14 +++++--------- tests/test_basic.py | 14 ++++++++++++++ 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/aiomysql/connection.py b/aiomysql/connection.py index 42573f2f..022315a9 100644 --- a/aiomysql/connection.py +++ b/aiomysql/connection.py @@ -733,12 +733,12 @@ async def _request_authentication(self): if self.user is None: raise ValueError("Did not specify a username") - if self._ssl_context and self.server_capabilities & CLIENT.SSL: - # capablities, max packet, charset - data = struct.pack('