aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun_spdy.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/gun_spdy.erl')
-rw-r--r--src/gun_spdy.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gun_spdy.erl b/src/gun_spdy.erl
index 546189a..6eacb73 100644
--- a/src/gun_spdy.erl
+++ b/src/gun_spdy.erl
@@ -245,7 +245,7 @@ get_stream_by_id(StreamID, #spdy_state{streams=Streams}) ->
end.
get_stream_by_ref(StreamRef, #spdy_state{streams=Streams}) ->
- case lists:keyfind(StreamRef, #stream.id, Streams) of
+ case lists:keyfind(StreamRef, #stream.ref, Streams) of
false -> false;
S -> S
end.