From 4bebe39975aab28962ac3850aa25a7d768c349bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sun, 22 Oct 2017 14:53:04 +0100 Subject: Ensure stream terminate is called when switching protocols --- src/cowboy_stream.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cowboy_stream.erl') diff --git a/src/cowboy_stream.erl b/src/cowboy_stream.erl index f360a08..a44d3ae 100644 --- a/src/cowboy_stream.erl +++ b/src/cowboy_stream.erl @@ -42,7 +42,7 @@ | stop]. -export_type([commands/0]). --type reason() :: normal +-type reason() :: normal | switch_protocol | {internal_error, timeout | {error | exit | throw, any()}, human_reason()} | {socket_error, closed | atom(), human_reason()} | {stream_error, cow_http2:error(), human_reason()} -- cgit v1.2.3