mirror of
https://github.com/python/cpython.git
synced 2025-07-26 20:54:39 +00:00
Fixed two of the three failing xml rpc tests
This commit is contained in:
parent
9bbac5065e
commit
0aa93cda79
2 changed files with 2 additions and 2 deletions
|
@ -479,7 +479,7 @@ class SimpleXMLRPCRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
|
|||
def report_404 (self):
|
||||
# Report a 404 error
|
||||
self.send_response(404)
|
||||
response = 'No such page'
|
||||
response = b'No such page'
|
||||
self.send_header("Content-type", "text/plain")
|
||||
self.send_header("Content-length", str(len(response)))
|
||||
self.end_headers()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue