aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun_http2.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/gun_http2.erl')
-rw-r--r--src/gun_http2.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gun_http2.erl b/src/gun_http2.erl
index a562e59..8d8e93d 100644
--- a/src/gun_http2.erl
+++ b/src/gun_http2.erl
@@ -199,7 +199,8 @@ trailers_frame(State, StreamID, Trailers) ->
rst_stream_frame(State=#http2_state{streams=Streams0}, StreamID, Reason) ->
case lists:keytake(StreamID, #stream.id, Streams0) of
{value, #stream{ref=StreamRef, reply_to=ReplyTo}, Streams} ->
- ReplyTo ! {gun_error, self(), StreamRef, Reason},
+ ReplyTo ! {gun_error, self(), StreamRef,
+ {stream_error, Reason, 'Stream reset by server.'}},
State#http2_state{streams=Streams};
false ->
State