]> git.pld-linux.org Git - packages/python-httplib2.git/blobdiff - python-httplib2-0.9-proxy-http.patch
- updated to 0.20.4
[packages/python-httplib2.git] / python-httplib2-0.9-proxy-http.patch
index 0375dfcc40be1e4479ac1b34f326795a332e8dae..7f050e6b72869499dee4cb314664ec92f56cd05a 100644 (file)
@@ -1,9 +1,8 @@
-diff -urNp -x '*.orig' httplib2-0.18.1.org/python2/httplib2/__init__.py httplib2-0.18.1/python2/httplib2/__init__.py
---- httplib2-0.18.1.org/python2/httplib2/__init__.py   2020-05-20 21:56:40.000000000 +0200
-+++ httplib2-0.18.1/python2/httplib2/__init__.py       2021-03-04 20:42:47.647805415 +0100
-@@ -1122,7 +1122,10 @@ def proxy_info_from_url(url, method="htt
-     else:
-         port = dict(https=443, http=80)[method]
+--- httplib2-0.20.4/python2/httplib2/__init__.py.orig  2022-04-28 06:26:39.115490769 +0200
++++ httplib2-0.20.4/python2/httplib2/__init__.py       2022-04-28 06:29:49.124461403 +0200
+@@ -962,7 +962,10 @@ def proxy_info_from_url(url, method="htt
+     """
+     url = urlparse.urlparse(url)
  
 -    proxy_type = 3  # socks.PROXY_TYPE_HTTP
 +    if method == 'http':
@@ -12,4 +11,4 @@ diff -urNp -x '*.orig' httplib2-0.18.1.org/python2/httplib2/__init__.py httplib2
 +        proxy_type = 3  # socks.PROXY_TYPE_HTTP
      pi = ProxyInfo(
          proxy_type=proxy_type,
-         proxy_host=host,
+         proxy_host=url.hostname,
This page took 0.347177 seconds and 4 git commands to generate.