File 0584-Fix-BodyFormat-of-spec.patch of Package erlang

From a0aba219ba56faac7a2b0e56fe85a218856f5b93 Mon Sep 17 00:00:00 2001
From: ts-klassen <git@su-shiki.com>
Date: Wed, 29 Nov 2023 21:07:00 +0900
Subject: [PATCH] Fix BodyFormat of spec

---
 lib/inets/src/http_client/httpc.erl | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/inets/src/http_client/httpc.erl b/lib/inets/src/http_client/httpc.erl
index 74ad5a93b0..6ccbb63dae 100644
--- a/lib/inets/src/http_client/httpc.erl
+++ b/lib/inets/src/http_client/httpc.erl
@@ -159,7 +159,7 @@ request(Url, Profile) ->
                         | {ipv6_host_with_brackets, boolean()},
       StreamTo :: none | self | {self, once} | file:name_all(),
       SocketOpt :: term(),
-      BodyFormat  :: string() | binary() | atom(),
+      BodyFormat  :: string | binary,
       Receiver :: pid()
                   | fun((term()) -> term())
                   | { ReceiverModule::atom()
@@ -220,7 +220,7 @@ request(Method, Request, HttpOptions, Options) ->
                      | {receiver, Receiver}
                      | {ipv6_host_with_brackets, boolean()},
       StreamTo :: none | self | {self, once} | file:name_all(),
-      BodyFormat  :: string() | binary() | atom(),
+      BodyFormat  :: string | binary,
       SocketOpt :: term(),
       Receiver :: pid()
                   | fun((term()) -> term())
@@ -903,7 +903,7 @@ maybe_format_body(BinBody, Options) ->
                         | {socket_opts, [SocketOpt]}
                         | {receiver, Receiver}
                         | {ipv6_host_with_brackets, boolean()},
-      BodyFormat  :: string() | binary() | atom(),
+      BodyFormat  :: string | binary,
       StreamTo :: none | self | {self, once} | file:name_all(),
       SocketOpt :: term(),
       Receiver :: pid()
@@ -1150,7 +1150,7 @@ request_options([{Key, DefaultVal, Verify} | Defaults], Options, Acc) ->
                      | {receiver, Receiver}
                      | {ipv6_host_with_brackets, boolean()},
       StreamTo :: none | self | {self, once} | file:name_all(),
-      BodyFormat  :: string() | binary() | atom(),
+      BodyFormat  :: string | binary,
       SocketOpt :: term(),
       Receiver :: pid()
                   | reference()
-- 
2.35.3

openSUSE Build Service is sponsored by