aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_http2.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/cowboy_http2.erl')
-rw-r--r--src/cowboy_http2.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_http2.erl b/src/cowboy_http2.erl
index 7cb564c..780cf05 100644
--- a/src/cowboy_http2.erl
+++ b/src/cowboy_http2.erl
@@ -298,7 +298,7 @@ frame(State, {priority, _StreamID, _IsExclusive, _DepStreamID, _Weight}) ->
State;
%% RST_STREAM frame.
frame(State, {rst_stream, StreamID, Reason}) ->
- stream_reset(State, StreamID, {stream_error, Reason, 'Stream reset requested by client.'});
+ stream_terminate(State, StreamID, {stream_error, Reason, 'Stream reset requested by client.'});
%% SETTINGS frame.
frame(State=#state{socket=Socket, transport=Transport}, {settings, _Settings}) ->
%% @todo Apply SETTINGS.