From 25c53400a90203b1e5a5e81f1668cc18bcfdcef3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Sun, 17 May 2026 03:24:01 +0200 Subject: [PATCH] Mint.HTTP.stream/2 returns :unknown, not :unknown_message, on error Sponsored-by: https://beaverlabs.net --- lib/mint/http.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mint/http.ex b/lib/mint/http.ex index 40c5f20c..97156290 100644 --- a/lib/mint/http.ex +++ b/lib/mint/http.ex @@ -152,7 +152,7 @@ defmodule Mint.HTTP do This guard is useful in `receive` loops or in callbacks that handle generic messages (such as a `c:GenServer.handle_info/2` callback) so that you don't have to hand the `message` to - `Mint.HTTP.stream/2` and check for the `:unknown_message` return value. + `Mint.HTTP.stream/2` and check for the `:unknown` return value. This macro can be used in guards.