Skip to content
Myr

Fix #1374

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by papaeye · committed by papaeye · parent 715a57d · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:test_requests.py+2 added-1 removed
343 unmodified lines
344 files={'file': ('test_requests.py', open(__file__, 'rb'))})345 self.assertEqual(r.status_code, 200)346347 def test_unicode_multipart_post_fieldnames(self):348 filename = os.path.splitext(__file__)[0] + '.py'349 r = requests.Request(method='POST',350 url=httpbin('post'),351 data={'stuff'.encode('utf-8'): 'elixr'},352 files={'file': ('test_requests.py',352 open(__file__, 'rb'))})353 open(filename, 'rb'))})354 prep = r.prepare()355 self.assertTrue(b'name="stuff"' in prep.body)356 self.assertFalse(b'name="b\'stuff\'"' in prep.body)357
349 unmodified lines