aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Magelowitz <[email protected]>2017-04-20 15:12:23 -0700
committerLoïc Hoguin <[email protected]>2017-05-05 17:55:18 +0200
commitf302ce2b83247c625391be26da9cddf1b8722e34 (patch)
treeda67ccb7a0e2419ce34ea6b7818a41576afb6276
parent8ef1382f0a949d2d094a7c1a3acf3c0486f4f85b (diff)
downloadcowboy-f302ce2b83247c625391be26da9cddf1b8722e34.tar.gz
cowboy-f302ce2b83247c625391be26da9cddf1b8722e34.tar.bz2
cowboy-f302ce2b83247c625391be26da9cddf1b8722e34.zip
length can be a non_neg_integer or infinity
-rw-r--r--src/cowboy_req.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_req.erl b/src/cowboy_req.erl
index ffc6e12..9417ad1 100644
--- a/src/cowboy_req.erl
+++ b/src/cowboy_req.erl
@@ -88,7 +88,7 @@
-export_type([cookie_opts/0]).
-type read_body_opts() :: #{
- length => non_neg_integer(),
+ length => non_neg_integer() | infinity,
period => non_neg_integer(),
timeout => timeout()
}.