aboutsummaryrefslogtreecommitdiffstats
path: root/src/cow_http_te.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-08-06 09:32:32 +0200
committerLoïc Hoguin <[email protected]>2018-08-06 09:32:32 +0200
commit7ee67df066af3d38fdb78aa396a6c3dd923ed107 (patch)
treed8f722f268321b90dfef0e8ddf73773a3e113fea /src/cow_http_te.erl
parentd037ef2e6f35e998e528649195e0369441129a7f (diff)
downloadcowlib-7ee67df066af3d38fdb78aa396a6c3dd923ed107.tar.gz
cowlib-7ee67df066af3d38fdb78aa396a6c3dd923ed107.tar.bz2
cowlib-7ee67df066af3d38fdb78aa396a6c3dd923ed107.zip
Fix typespecs causing Dialyzer errors in user projects
Diffstat (limited to 'src/cow_http_te.erl')
-rw-r--r--src/cow_http_te.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cow_http_te.erl b/src/cow_http_te.erl
index d3cb4a0..59f4b86 100644
--- a/src/cow_http_te.erl
+++ b/src/cow_http_te.erl
@@ -128,10 +128,10 @@ horse_stream_identity_dripfeed() ->
%% @doc Decode a chunked stream.
-spec stream_chunked(Data, State)
- -> more | {more, Data, State} | {more, Data, Len, State}
+ -> more | {more, Data, State} | {more, Data, non_neg_integer(), State}
| {more, Data, Data, State}
- | {done, Len, Data} | {done, Data, Len, Data}
- when Data::binary(), State::state(), Len::non_neg_integer().
+ | {done, HasTrailers, Data} | {done, Data, HasTrailers, Data}
+ when Data::binary(), State::state(), HasTrailers::trailers | no_trailers.
stream_chunked(Data, State) ->
stream_chunked(Data, State, <<>>).