aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src/http_client
diff options
context:
space:
mode:
authorEric Meadows-Jönsson <[email protected]>2016-11-19 16:47:24 +0100
committerEric Meadows-Jönsson <[email protected]>2016-11-19 16:47:24 +0100
commit740287d0899a137efa5635bdb7d228f4abf0aeb8 (patch)
treee3f42dc8054ff49fa381dbf901f6c1c9fc91d1e5 /lib/inets/src/http_client
parent4683b5c227a238ee27f658bdfe2981c4b69acf09 (diff)
downloadotp-740287d0899a137efa5635bdb7d228f4abf0aeb8.tar.gz
otp-740287d0899a137efa5635bdb7d228f4abf0aeb8.tar.bz2
otp-740287d0899a137efa5635bdb7d228f4abf0aeb8.zip
Report errors from TLS tunnel request to correct process
Diffstat (limited to 'lib/inets/src/http_client')
-rw-r--r--lib/inets/src/http_client/httpc_handler.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/inets/src/http_client/httpc_handler.erl b/lib/inets/src/http_client/httpc_handler.erl
index 59cb1299e9..a09019f6ad 100644
--- a/lib/inets/src/http_client/httpc_handler.erl
+++ b/lib/inets/src/http_client/httpc_handler.erl
@@ -1749,14 +1749,16 @@ tls_tunnel(Address, Request, #state{session = #session{socket = Socket,
tls_tunnel_request(#request{headers = Headers,
settings = Options,
+ id = RequestId,
+ from = From,
address = {Host, Port}= Adress,
ipv6_host_with_brackets = IPV6}) ->
URI = Host ++":" ++ integer_to_list(Port),
#request{
- id = make_ref(),
- from = self(),
+ id = RequestId,
+ from = From,
scheme = http, %% Use tcp-first and then upgrade!
address = Adress,
path = URI,