summaryrefslogtreecommitdiffhomepage
path: root/test/test_ruby_application.py
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2022-09-07 01:11:04 +0100
committerAndrei Zeliankou <zelenkov@nginx.com>2022-09-07 01:11:04 +0100
commitc65e04682e85cc708b534863ae8f4e069ccccf64 (patch)
tree34f871e1c6d60da776d67cb0be7425289dae7205 /test/test_ruby_application.py
parent9d3b9dba40924229b0c4909b0a4c60d08214501c (diff)
downloadunit-c65e04682e85cc708b534863ae8f4e069ccccf64.tar.gz
unit-c65e04682e85cc708b534863ae8f4e069ccccf64.tar.bz2
Tests: minor fixes.
Diffstat (limited to 'test/test_ruby_application.py')
-rw-r--r--test/test_ruby_application.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/test/test_ruby_application.py b/test/test_ruby_application.py
index b3e02406..83af39be 100644
--- a/test/test_ruby_application.py
+++ b/test/test_ruby_application.py
@@ -347,7 +347,6 @@ class TestRubyApplication(TestApplicationRuby):
headers={
'Host': 'localhost',
'Connection': 'keep-alive',
- 'Content-Type': 'text/html',
},
start=True,
body=body,
@@ -357,15 +356,7 @@ class TestRubyApplication(TestApplicationRuby):
assert resp['body'] == body, 'keep-alive 1'
body = '0123456789'
- resp = self.post(
- headers={
- 'Host': 'localhost',
- 'Connection': 'close',
- 'Content-Type': 'text/html',
- },
- sock=sock,
- body=body,
- )
+ resp = self.post(sock=sock, body=body)
assert resp['body'] == body, 'keep-alive 2'