summaryrefslogtreecommitdiffhomepage
path: root/test/test_http_header.py
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2018-08-08 15:36:30 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2018-08-08 15:36:30 +0300
commit6c0c3dcaa7b085aef3f1ed56cb1c73d34f54e6f1 (patch)
treebc6f975a45b3da4c580fd8634c495da66312dcd2 /test/test_http_header.py
parenteee6102a281acb4115b4b567541670d5c5efa7c3 (diff)
downloadunit-6c0c3dcaa7b085aef3f1ed56cb1c73d34f54e6f1.tar.gz
unit-6c0c3dcaa7b085aef3f1ed56cb1c73d34f54e6f1.tar.bz2
Tests: simple "Transfer-Encoding" client header test.
Diffstat (limited to '')
-rw-r--r--test/test_http_header.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/test_http_header.py b/test/test_http_header.py
index aadb6092..1ca0920d 100644
--- a/test/test_http_header.py
+++ b/test/test_http_header.py
@@ -145,5 +145,22 @@ Connection: close
self.assertEqual(resp['status'], 400, 'field trailing htab')
+ @unittest.expectedFailure
+ def test_http_header_transfer_encoding_chunked(self):
+ self.load('empty')
+
+ resp = self.http(b"""GET / HTTP/1.1
+Host: localhost
+Transfer-Encoding: chunked
+Connection: close
+
+a
+0123456789
+0
+
+""", raw=True)
+
+ self.assertEqual(resp['status'], 200, 'transfer encoding chunked')
+
if __name__ == '__main__':
unittest.main()