summaryrefslogtreecommitdiffhomepage
path: root/test/test_proxy.py
diff options
context:
space:
mode:
authorAndrei Belov <defan@nginx.com>2020-03-12 18:40:48 +0300
committerAndrei Belov <defan@nginx.com>2020-03-12 18:40:48 +0300
commit4b7ca39903178e20ec7381205694cb01f0dec6bc (patch)
tree51afb9c7003b5927183e7ddecd766eb19e421233 /test/test_proxy.py
parent8414897527ed1616ea39a0cae4d1b8ee170d5cb8 (diff)
parentb3c8a7b33a29208e75dfe4f670cf81dac7b99ccc (diff)
downloadunit-4b7ca39903178e20ec7381205694cb01f0dec6bc.tar.gz
unit-4b7ca39903178e20ec7381205694cb01f0dec6bc.tar.bz2
Merged with the default branch.1.16.0-1
Diffstat (limited to 'test/test_proxy.py')
-rw-r--r--test/test_proxy.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_proxy.py b/test/test_proxy.py
index 5d158285..74bd0873 100644
--- a/test/test_proxy.py
+++ b/test/test_proxy.py
@@ -188,6 +188,13 @@ Content-Length: 10
self.assertEqual(resp['status'], 200, 'status')
self.assertEqual(resp['body'], payload, 'body')
+ self.conf({'http': {'max_body_size': 32 * 1024 * 1024}}, 'settings')
+
+ payload = '0123456789abcdef' * 32 * 64 * 1024
+ resp = self.post_http10(body=payload, read_buffer_size=1024 * 1024)
+ self.assertEqual(resp['status'], 200, 'status')
+ self.assertEqual(resp['body'], payload, 'body')
+
def test_proxy_parallel(self):
payload = 'X' * 4096 * 257
buff_size = 4096 * 258