aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun_socks.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2020-11-12 15:27:07 +0100
committerLoïc Hoguin <[email protected]>2020-11-12 15:27:07 +0100
commit492c955819eec864e3f3ea2760d3ee7800851356 (patch)
tree67046c8bd94cc875b9d0887d721cc3e55ba0950c /src/gun_socks.erl
parent093dcd5fdefb6df0d316624665c584f37040cdd8 (diff)
downloadgun-492c955819eec864e3f3ea2760d3ee7800851356.tar.gz
gun-492c955819eec864e3f3ea2760d3ee7800851356.tar.bz2
gun-492c955819eec864e3f3ea2760d3ee7800851356.zip
Return 'undefined' for raw|socks origin_scheme where applicable
Diffstat (limited to 'src/gun_socks.erl')
-rw-r--r--src/gun_socks.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gun_socks.erl b/src/gun_socks.erl
index cda4f98..541949f 100644
--- a/src/gun_socks.erl
+++ b/src/gun_socks.erl
@@ -137,7 +137,8 @@ handle(<<5, 0, 0, Rest0/bits>>, #socks_state{ref=StreamRef, reply_to=ReplyTo, op
end,
%% @todo Maybe an event indicating success.
#{host := NewHost, port := NewPort} = Opts,
- %% @todo The origin scheme is wrong when the next protocol is not HTTP.
+ %% There is no origin scheme when not using HTTP but we act as if
+ %% there is and simply correct the value in the info functions.
case Opts of
#{transport := tls} ->
HandshakeEvent0 = #{