Kaydet (Commit) 69899e6f authored tarafından Victor Stinner's avatar Victor Stinner

Merge 3.4 (httplib)

...@@ -1113,6 +1113,7 @@ class HTTPSTest(TestCase): ...@@ -1113,6 +1113,7 @@ class HTTPSTest(TestCase):
context=context) context=context)
h.request('GET', '/') h.request('GET', '/')
resp = h.getresponse() resp = h.getresponse()
h.close()
self.assertIn('nginx', resp.getheader('server')) self.assertIn('nginx', resp.getheader('server'))
@support.system_must_validate_cert @support.system_must_validate_cert
...@@ -1124,6 +1125,7 @@ class HTTPSTest(TestCase): ...@@ -1124,6 +1125,7 @@ class HTTPSTest(TestCase):
h.request('GET', '/') h.request('GET', '/')
resp = h.getresponse() resp = h.getresponse()
content_type = resp.getheader('content-type') content_type = resp.getheader('content-type')
h.close()
self.assertIn('text/html', content_type) self.assertIn('text/html', content_type)
def test_networked_good_cert(self): def test_networked_good_cert(self):
...@@ -1138,6 +1140,7 @@ class HTTPSTest(TestCase): ...@@ -1138,6 +1140,7 @@ class HTTPSTest(TestCase):
h.request('GET', '/') h.request('GET', '/')
resp = h.getresponse() resp = h.getresponse()
server_string = resp.getheader('server') server_string = resp.getheader('server')
h.close()
self.assertIn('nginx', server_string) self.assertIn('nginx', server_string)
def test_networked_bad_cert(self): def test_networked_bad_cert(self):
......
...@@ -1270,6 +1270,7 @@ Alexander Shigin ...@@ -1270,6 +1270,7 @@ Alexander Shigin
Pete Shinners Pete Shinners
Michael Shiplett Michael Shiplett
John W. Shipman John W. Shipman
Alex Shkop
Joel Shprentz Joel Shprentz
Yue Shuaijie Yue Shuaijie
Terrel Shumway Terrel Shumway
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment