mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Merged revisions 80112 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r80112 | victor.stinner | 2010-04-16 15:28:05 +0200 (ven., 16 avril 2010) | 3 lines Issue #7606: XML-RPC traceback stored in X-traceback is now encoded to ASCII using backslashreplace error handler. ........
This commit is contained in:
parent
30ba25b865
commit
f45c368f4d
2 changed files with 6 additions and 1 deletions
|
@ -469,7 +469,9 @@ class SimpleXMLRPCRequestHandler(BaseHTTPRequestHandler):
|
|||
if hasattr(self.server, '_send_traceback_header') and \
|
||||
self.server._send_traceback_header:
|
||||
self.send_header("X-exception", str(e))
|
||||
self.send_header("X-traceback", traceback.format_exc())
|
||||
trace = traceback.format_exc()
|
||||
trace = str(trace.encode('ASCII', 'backslashreplace'), 'ASCII')
|
||||
self.send_header("X-traceback", trace)
|
||||
|
||||
self.end_headers()
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue