34 lines
1010 B
Diff
34 lines
1010 B
Diff
From 8afa163fba77b38de1c2356668f08a7c3b9d0b58 Mon Sep 17 00:00:00 2001
|
|
From: danigm <daniel.garcia@suse.com>
|
|
Date: Mon, 15 May 2023 15:20:35 +0200
|
|
Subject: [PATCH] Update update_query calls to work with latest yarl
|
|
|
|
---
|
|
aiohttp/client.py | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/aiohttp/client.py b/aiohttp/client.py
|
|
index 0d0f4c1..56ec740 100644
|
|
--- a/aiohttp/client.py
|
|
+++ b/aiohttp/client.py
|
|
@@ -414,6 +414,7 @@ class ClientSession:
|
|
redirects = 0
|
|
history = []
|
|
version = self._version
|
|
+ params = params or {}
|
|
|
|
# Merge with default headers and transform to CIMultiDict
|
|
headers = self._prepare_headers(headers)
|
|
@@ -630,7 +631,7 @@ class ClientSession:
|
|
headers.pop(hdrs.AUTHORIZATION, None)
|
|
|
|
url = parsed_url
|
|
- params = None
|
|
+ params = {}
|
|
resp.release()
|
|
continue
|
|
|
|
--
|
|
2.40.1
|
|
|