k3http 0.1.2__tar.gz → 0.1.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: k3http
3
- Version: 0.1.2
3
+ Version: 0.1.4
4
4
  Summary: HTTP/1.1 client with timeout support
5
5
  Author-email: Zhang Yanpo <drdr.xp@gmail.com>
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: k3http
3
- Version: 0.1.2
3
+ Version: 0.1.4
4
4
  Summary: HTTP/1.1 client with timeout support
5
5
  Author-email: Zhang Yanpo <drdr.xp@gmail.com>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "k3http"
7
- version = "0.1.2"
7
+ version = "0.1.4"
8
8
  description = "HTTP/1.1 client with timeout support"
9
9
  readme = "README.md"
10
10
  license = {text = "MIT"}
@@ -380,7 +380,9 @@ class TestHttpClient(unittest.TestCase):
380
380
  self.http_server = HTTPServer(addr, Handle)
381
381
  if "https" in self._testMethodName:
382
382
  cert_file = os.path.join(HOME_PATH, "test_https.pem")
383
- self.http_server.socket = ssl.wrap_socket(self.http_server.socket, certfile=cert_file, server_side=True)
383
+ context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
384
+ context.load_cert_chain(cert_file)
385
+ self.http_server.socket = context.wrap_socket(self.http_server.socket, server_side=True)
384
386
  self.http_server.serve_forever()
385
387
 
386
388
  def _special_case_handle(self):
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes