From e10daf39fa08fb1367b277b31b4c9c9baad5239b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 2 Jan 2017 16:47:16 +0100 Subject: Numerous Dialyzer fixes --- src/cowboy_http.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cowboy_http.erl') diff --git a/src/cowboy_http.erl b/src/cowboy_http.erl index ae42e6d..f38db97 100644 --- a/src/cowboy_http.erl +++ b/src/cowboy_http.erl @@ -44,7 +44,7 @@ qs = undefined :: binary(), version = undefined :: cowboy:http_version(), headers = undefined :: map() | undefined, %% @todo better type than map() - name = undefined :: binary() + name = undefined :: binary() | undefined }). %% @todo We need a state where we wait for the stream process to ask for the body. @@ -1027,7 +1027,7 @@ terminate(_State, _Reason) -> %% System callbacks. --spec system_continue(_, _, #state{}) -> ok. +-spec system_continue(_, _, {#state{}, binary()}) -> ok. system_continue(_, _, {State, Buffer}) -> loop(State, Buffer). -- cgit v1.2.3