aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun_http.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/gun_http.erl')
-rw-r--r--src/gun_http.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gun_http.erl b/src/gun_http.erl
index 81310bf..57f72c7 100644
--- a/src/gun_http.erl
+++ b/src/gun_http.erl
@@ -265,7 +265,7 @@ handle_head(Data, State=#http_state{socket=Socket, version=ClientVersion,
case IsFin of
fin -> undefined;
nofin ->
- gun_content_handler:init(ReplyTo, StreamRef,
+ gun_content_handler:init(ReplyTo, stream_ref(StreamRef),
Status, Headers, Handlers0)
end
end,