Backport upstream patch to fix a test failing with python-yarl 1.9.2
This commit is contained in:
parent
30cd403d35
commit
6910f0c38e
33
Update-update_query-calls-to-work-with-latest-yarl.patch
Normal file
33
Update-update_query-calls-to-work-with-latest-yarl.patch
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
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
|
||||||
|
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: python-aiohttp
|
Name: python-aiohttp
|
||||||
Version: 3.8.4
|
Version: 3.8.4
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Python HTTP client/server for asyncio
|
Summary: Python HTTP client/server for asyncio
|
||||||
|
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
@ -20,6 +20,11 @@ Patch: 0001-Unbundle-llhttp.patch
|
|||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=2158175
|
# https://bugzilla.redhat.com/show_bug.cgi?id=2158175
|
||||||
Patch: %{url}/pull/7178.patch
|
Patch: %{url}/pull/7178.patch
|
||||||
|
|
||||||
|
# Update update_query calls to work with latest yarl (1.9.2)
|
||||||
|
# Patch was inspired by this upstream commit:
|
||||||
|
# https://github.com/aio-libs/aiohttp/commit/2be9318
|
||||||
|
Patch: Update-update_query-calls-to-work-with-latest-yarl.patch
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
|
|
||||||
BuildRequires: llhttp-devel
|
BuildRequires: llhttp-devel
|
||||||
@ -140,6 +145,9 @@ k="${k-}${k+ and }not test_tcp_connector_fingerprint_fail[pyloop]"
|
|||||||
%doc README.rst
|
%doc README.rst
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon May 15 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.8.4-2
|
||||||
|
- Backport upstream patch to fix a test failing with python-yarl 1.9.2
|
||||||
|
|
||||||
* Mon Feb 13 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 3.8.4-1
|
* Mon Feb 13 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 3.8.4-1
|
||||||
- Update to 3.8.4 (close RHBZ#2169212)
|
- Update to 3.8.4 (close RHBZ#2169212)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user