File 0209-Copy-request-options-during-tls-connection-change.patch of Package erlang
From 123d7ef9e1d654d87b85e8b643ff42e9c542805a Mon Sep 17 00:00:00 2001
From: Sundeep Katepalli <skatepalli@meta.com>
Date: Wed, 12 Nov 2025 11:14:20 -0800
Subject: [PATCH 1/2] Copy request options during tls connection change
---
lib/inets/src/http_client/httpc_handler.erl | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/inets/src/http_client/httpc_handler.erl b/lib/inets/src/http_client/httpc_handler.erl
index 4a4fedc149..b837ef9d9a 100644
--- a/lib/inets/src/http_client/httpc_handler.erl
+++ b/lib/inets/src/http_client/httpc_handler.erl
@@ -1583,7 +1583,7 @@ tls_tunnel_request(#request{headers = Headers,
id = RequestId,
from = From,
address = {Host, Port}= Adress,
- ipv6_host_with_brackets = IPV6}) ->
+ ipv6_host_with_brackets = IPV6, request_options = ReqOptions}) ->
URI = Host ++":" ++ integer_to_list(Port),
@@ -1605,7 +1605,8 @@ tls_tunnel_request(#request{headers = Headers,
userinfo = "",
headers_as_is = [],
started = http_util:timestamp(),
- ipv6_host_with_brackets = IPV6
+ ipv6_host_with_brackets = IPV6,
+ request_options = ReqOptions
}.
host_header(#http_request_h{host = Host}, _) ->
--
2.51.0