Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70d0dda commit 022c474Copy full SHA for 022c474
1 file changed
Lib/test/test_httplib.py
@@ -53,7 +53,7 @@ class HeaderCountingBuffer(list):
53
def __init__(self):
54
self.count = {}
55
def append(self, item):
56
- kv = item.split(':')
+ kv = item.split(b':')
57
if len(kv) > 1:
58
# item is a 'Key: Value' header string
59
lcKey = kv[0].decode('ascii').lower()
@@ -138,8 +138,8 @@ def test_read_head(self):
138
resp.close()
139
140
def test_send_file(self):
141
- expected = ('GET /foo HTTP/1.1\r\nHost: example.com\r\n'
142
- 'Accept-Encoding: identity\r\nContent-Length:')
+ expected = (b'GET /foo HTTP/1.1\r\nHost: example.com\r\n'
+ b'Accept-Encoding: identity\r\nContent-Length:')
143
144
body = open(__file__, 'rb')
145
conn = httplib.HTTPConnection('example.com')
0 commit comments