aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/cowboy_middleware.erl2
-rw-r--r--src/cowboy_sub_protocol.erl2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cowboy_middleware.erl b/src/cowboy_middleware.erl
index 0c1ca77..3d58627 100644
--- a/src/cowboy_middleware.erl
+++ b/src/cowboy_middleware.erl
@@ -30,7 +30,7 @@
-callback execute(Req, Env)
-> {ok, Req, Env}
- | {suspend, module(), atom(), any()}
+ | {suspend, module(), atom(), [any()]}
| {halt, Req}
| {error, cowboy_http:status(), Req}
when Req::cowboy_req:req(), Env::env().
diff --git a/src/cowboy_sub_protocol.erl b/src/cowboy_sub_protocol.erl
index 0b231d3..babc6f2 100644
--- a/src/cowboy_sub_protocol.erl
+++ b/src/cowboy_sub_protocol.erl
@@ -31,7 +31,7 @@
-callback upgrade(Req, Env, module(), any())
-> {ok, Req, Env}
- | {suspend, module(), atom(), any()}
+ | {suspend, module(), atom(), [any()]}
| {halt, Req}
| {error, cowboy_http:status(), Req}
when Req::cowboy_req:req(), Env::cowboy_middleware:env().