aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun_data_h.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/gun_data_h.erl')
-rw-r--r--src/gun_data_h.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gun_data_h.erl b/src/gun_data_h.erl
index af2c2cb..d1f8787 100644
--- a/src/gun_data_h.erl
+++ b/src/gun_data_h.erl
@@ -27,7 +27,7 @@
init(ReplyTo, StreamRef, _, _, _) ->
{ok, #state{reply_to=ReplyTo, stream_ref=StreamRef}}.
--spec handle(fin | nofin, binary(), State) -> {done, State} when State::#state{}.
+-spec handle(fin | nofin, binary(), State) -> {done, 1, State} when State::#state{}.
handle(IsFin, Data, State=#state{reply_to=ReplyTo, stream_ref=StreamRef}) ->
ReplyTo ! {gun_data, self(), StreamRef, IsFin, Data},
- {done, State}.
+ {done, 1, State}.