aboutsummaryrefslogtreecommitdiffstats
path: root/test/rfc7230_SUITE.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-01-02 15:08:45 +0100
committerLoïc Hoguin <[email protected]>2019-01-02 15:08:45 +0100
commit8a30f96cf19f9104e3ae8df5f85df33b66b5bfc2 (patch)
treed3e88a75756d45ab41bbf78ab8cb909107a55c2e /test/rfc7230_SUITE.erl
parentca0db57a30c4978f0291ef7900962ed9b8de005d (diff)
downloadgun-8a30f96cf19f9104e3ae8df5f85df33b66b5bfc2.tar.gz
gun-8a30f96cf19f9104e3ae8df5f85df33b66b5bfc2.tar.bz2
gun-8a30f96cf19f9104e3ae8df5f85df33b66b5bfc2.zip
Don't send the default port in the host header for HTTP/2
Diffstat (limited to 'test/rfc7230_SUITE.erl')
-rw-r--r--test/rfc7230_SUITE.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rfc7230_SUITE.erl b/test/rfc7230_SUITE.erl
index 517e2d5..f6e077b 100644
--- a/test/rfc7230_SUITE.erl
+++ b/test/rfc7230_SUITE.erl
@@ -114,7 +114,7 @@ do_host_port(Transport, DefaultPort, HostHeaderPort) ->
{ok, OriginPid, OriginPort} = do_origin_start(Transport, http),
{ok, ConnPid} = gun:open("localhost", OriginPort, #{transport => Transport}),
{ok, http} = gun:await_up(ConnPid),
- %% Change the port in the state to trigger the default port behavior.
+ %% Change the origin's port in the state to trigger the default port behavior.
_ = sys:replace_state(ConnPid, fun({StateName, StateData}) ->
{StateName, setelement(7, StateData, DefaultPort)}
end, 5000),