diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2016-12-13 20:07:03 +1300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-14 12:25:07 +0000 |
commit | 727f332829a29cf71972573e68b53bb570e30ffd (patch) | |
tree | ca158d20d45ec94c765ede3a54bd0c8a46ba163d /bitbake | |
parent | 7ebca83926720164358be298cfcebecba2427760 (diff) | |
download | poky-727f332829a29cf71972573e68b53bb570e30ffd.tar.gz |
bitbake: server/xmlrpc: send back 503 response with correct encoding
If you send back a string here you get "TypeError: 'str' does not
support the buffer interface" errors in bitbake-cookerdaemon.log and
"IncompleteRead(0 bytes read, 22 more expected)" errors on the client
side.
(Bitbake rev: 0d659a7dfe5fb096f8aa4380320f9e2a464b3cb5)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/server/xmlrpc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/server/xmlrpc.py b/bitbake/lib/bb/server/xmlrpc.py index 452f14bb32..a06007f5ac 100644 --- a/bitbake/lib/bb/server/xmlrpc.py +++ b/bitbake/lib/bb/server/xmlrpc.py | |||
@@ -190,7 +190,7 @@ class BitBakeXMLRPCRequestHandler(SimpleXMLRPCRequestHandler): | |||
190 | self.send_header("Content-type", "text/plain") | 190 | self.send_header("Content-type", "text/plain") |
191 | self.send_header("Content-length", str(len(response))) | 191 | self.send_header("Content-length", str(len(response))) |
192 | self.end_headers() | 192 | self.end_headers() |
193 | self.wfile.write(response) | 193 | self.wfile.write(bytes(response, 'utf-8')) |
194 | 194 | ||
195 | 195 | ||
196 | class XMLRPCProxyServer(BaseImplServer): | 196 | class XMLRPCProxyServer(BaseImplServer): |