Commit 731789f9 authored by R David Murray's avatar R David Murray

#10510: Fix bug in forward port of 2.7 distutils patch.

Pointed out by Arfrever.
parent 04d00c2d
......@@ -164,7 +164,6 @@ class upload(PyPIRCCommand):
if value and value[-1:] == b'\r':
body.write(b'\n') # write an extra newline (lurve Macs)
body.write(end_boundary)
body.write(b"\r\n")
body = body.getvalue()
self.announce("Submitting %s to %s" % (filename, self.repository), log.INFO)
......
......@@ -127,7 +127,7 @@ class uploadTestCase(PyPIRCCommandTestCase):
# what did we send ?
headers = dict(self.last_open.req.headers)
self.assertEqual(headers['Content-length'], '2163')
self.assertEqual(headers['Content-length'], '2161')
content_type = headers['Content-type']
self.assertTrue(content_type.startswith('multipart/form-data'))
self.assertEqual(self.last_open.req.get_method(), 'POST')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment