aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorJosef Pospíšil <josef.pospisil@laststar.eu>2021-10-14 12:48:39 +0200
committerJosef Pospíšil <josef.pospisil@laststar.eu>2021-10-14 12:48:39 +0200
commit0b3669e1242823a722c7d6f247b440d154a95361 (patch)
tree69630adf24cfe2cf4f1a4a63800517b815de32dd /test
parentMerge pull request #45 from pepe/fix-reading-req (diff)
Fix read body and add auto body read in request
Diffstat (limited to 'test')
-rw-r--r--test/suite0012.janet5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/suite0012.janet b/test/suite0012.janet
index 69996f5..4c13755 100644
--- a/test/suite0012.janet
+++ b/test/suite0012.janet
@@ -60,4 +60,9 @@
:body (string/repeat "a" 2097152))
nil nil 200 {"content-length" "2097152"}))
+(with [server (http/server body-server "127.0.0.1" 9816)]
+ (test-http-item (http/request "POST" "http://127.0.0.1:9816"
+ :body (string/repeat "a" 4194304))
+ nil nil 200 {"content-length" "4194304"}))
+
(end-suite)