From 0d93165c4ad5ac670fe14537b2d32f98723a0d5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eric=20Meadows-J=C3=B6nsson?= Date: Sun, 1 Feb 2026 22:05:03 +0100 Subject: [PATCH] Fix Req streaming by using response.body.ref With Req's `into: :self`, the response body is a `Req.Response.Async` struct, not a ref directly. Extract the ref field to match messages correctly in the receive block. --- lib/hexdocs/http.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hexdocs/http.ex b/lib/hexdocs/http.ex index 93d56e8..16be574 100644 --- a/lib/hexdocs/http.ex +++ b/lib/hexdocs/http.ex @@ -27,7 +27,7 @@ defmodule Hexdocs.HTTP do def get_stream(url, headers) do case Req.get(url, headers: headers, retry: false, decode_body: false, into: :self) do {:ok, response} -> - stream = stream_body(response.body) + stream = stream_body(response.body.ref) {:ok, response.status, normalize_headers(response.headers), stream} {:error, reason} ->