From b53d40ec395c9901229715e5b7964ae59a3b1adf Mon Sep 17 00:00:00 2001 From: Ingela Anderton Andin Date: Thu, 20 Oct 2016 15:20:34 +0200 Subject: inets: httpc - do not send absolute URIs over TLS tunnels Proxies want absolut URIs, but once a TLS tunnel is set up it is like talking direct to the server. --- lib/inets/src/http_client/httpc_request.erl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/inets') diff --git a/lib/inets/src/http_client/httpc_request.erl b/lib/inets/src/http_client/httpc_request.erl index e8d020c165..89872a3831 100644 --- a/lib/inets/src/http_client/httpc_request.erl +++ b/lib/inets/src/http_client/httpc_request.erl @@ -88,9 +88,11 @@ send(SendAddr, Socket, SocketType, case Address of SendAddr -> {TmpHdrs2, Path ++ Query}; - _Proxy -> + _Proxy when SocketType == ip_comm -> TmpHdrs3 = handle_proxy(HttpOptions, TmpHdrs2), - {TmpHdrs3, AbsUri} + {TmpHdrs3, AbsUri}; + _ -> + {TmpHdrs2, Path ++ Query} end, FinalHeaders = -- cgit v1.2.3