Merge "Fixes Ilegal chunk encoding by the test_client"

This commit is contained in:
Jenkins 2012-10-23 20:50:52 +00:00 committed by Gerrit Code Review
commit 78e2ffab6c

View File

@ -280,7 +280,7 @@ class Connection(object):
def put_data(self, data, chunked=False):
if chunked:
self.connection.send('%s\r\n%s\r\n' % (hex(len(data)), data))
self.connection.send('%x\r\n%s\r\n' % (len(data), data))
else:
self.connection.send(data)