0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-16 05:00:24 +00:00

Numerous Dialyzer fixes

This commit is contained in:
Loïc Hoguin 2017-01-02 16:47:16 +01:00
parent ed664345d7
commit e10daf39fa
No known key found for this signature in database
GPG key ID: 71366FF21851DF03
11 changed files with 43 additions and 35 deletions

View file

@ -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).