File: requests-2.32.2.patch

package info (click to toggle)
python-requests-unixsocket 1.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 256 kB
  • sloc: python: 316; sh: 23; makefile: 14
file content (21 lines) | stat: -rw-r--r-- 1,071 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: adapters: fix for requests 2.32.2+
Author: Simon Deziel <simon.deziel@canonical.com>
Origin: other, https://github.com/msabramo/requests-unixsocket/pull/72
Bug-Debian: https://bugs.debian.org/1073393
Last-Update: 2024-08-16

Index: python-requests-unixsocket/requests_unixsocket/adapters.py
===================================================================
--- python-requests-unixsocket.orig/requests_unixsocket/adapters.py
+++ python-requests-unixsocket/requests_unixsocket/adapters.py
@@ -54,6 +54,10 @@ class UnixAdapter(HTTPAdapter):
     def get_connection_with_tls_context(self, request, verify, proxies=None, cert=None):
         return self.get_connection(request.url, proxies)
 
+    # Fix for requests 2.32.2+: https://github.com/psf/requests/pull/6710
+    def get_connection_with_tls_context(self, request, verify, proxies=None, cert=None):
+        return self.get_connection(request.url, proxies)
+
     def get_connection(self, url, proxies=None):
         proxies = proxies or {}
         proxy = proxies.get(urlparse(url.lower()).scheme)