mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Merge: #10510: make distuitls upload/register use HTML standards compliant CRLF.
This commit is contained in:
commit
3a54c3e3aa
4 changed files with 10 additions and 6 deletions
|
@ -127,7 +127,7 @@ class uploadTestCase(PyPIRCCommandTestCase):
|
|||
|
||||
# what did we send ?
|
||||
headers = dict(self.last_open.req.headers)
|
||||
self.assertEqual(headers['Content-length'], '2087')
|
||||
self.assertEqual(headers['Content-length'], '2163')
|
||||
content_type = headers['Content-type']
|
||||
self.assertTrue(content_type.startswith('multipart/form-data'))
|
||||
self.assertEqual(self.last_open.req.get_method(), 'POST')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue