From 2531df96a0cc34c42b3339907d303ff5215b37a7 Mon Sep 17 00:00:00 2001 From: David Hadas Date: Tue, 23 Oct 2012 00:23:43 +0200 Subject: [PATCH] Fixes Ilegal chunk encoding by the test_client test_client sends a wrong size indication when testing chunked data. For example instead of sending: 5\r\nabcde\r\n (which is inline with the standard) The client would send: 0x5\r\nabcde\r\n On branch bp/wsgi-application-interface-2 modified: test/functional/swift_test_client.py Change-Id: I7597dcd24adade009aead66f67674f361f3fe4fa Fixes: Bug #1070036 Implements: Blueprint wsgi-application-interface --- test/functional/swift_test_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/swift_test_client.py b/test/functional/swift_test_client.py index 808c36b91e..7b7619841b 100644 --- a/test/functional/swift_test_client.py +++ b/test/functional/swift_test_client.py @@ -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)