Fixes by John Reese and Jacques Frechet that make test_xmlrpc pass.

(Note that test_xmlrpc isn't touched by the fixes!)  There were two
separate issues; (a) BaseHTTPServer was using a TextIOWrapper which
was swallowing some of the POST body; (b) the getheaders() API was
changed but (due to integration of 2.6 code) the code wasn't modified.
This commit is contained in:
Guido van Rossum 2007-08-22 23:45:42 +00:00
parent 2523621693
commit cfe02a498b
2 changed files with 16 additions and 9 deletions

View file

@ -1118,7 +1118,7 @@ def request(self, host, handler, request_body, verbose=0):
raise ProtocolError(
host + handler,
resp.status, resp.reason,
resp.getheaders()
dict(resp.getheaders())
)
self.verbose = verbose