aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/test
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2013-03-12 16:19:59 +0100
committerIngela Anderton Andin <[email protected]>2014-02-05 10:32:22 +0100
commit68cecbfa6a9d79b9137c2cf797b0499c9daed27b (patch)
tree35a900b90a32834ddea61bed601568e07b1dff0f /lib/inets/test
parent023a3b53e6011e05f46013104146fcd6df97fd75 (diff)
downloadotp-68cecbfa6a9d79b9137c2cf797b0499c9daed27b.tar.gz
otp-68cecbfa6a9d79b9137c2cf797b0499c9daed27b.tar.bz2
otp-68cecbfa6a9d79b9137c2cf797b0499c9daed27b.zip
Added guard for invalid field and values in headers
Diffstat (limited to 'lib/inets/test')
-rw-r--r--lib/inets/test/httpc_SUITE.erl7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/inets/test/httpc_SUITE.erl b/lib/inets/test/httpc_SUITE.erl
index 43eaa48961..15792a1b36 100644
--- a/lib/inets/test/httpc_SUITE.erl
+++ b/lib/inets/test/httpc_SUITE.erl
@@ -83,7 +83,8 @@ real_requests()->
stream_through_fun,
stream_through_mfa,
streaming_error,
- inet_opts
+ inet_opts,
+ invalid_headers
].
only_simulated() ->
@@ -795,6 +796,10 @@ headers_dummy(Config) when is_list(Config) ->
%%-------------------------------------------------------------------------
+invalid_headers(Config) ->
+ Request = {url(group_name(Config), "/dummy.html", Config), [{"cookie", undefined}]},
+ {error, _} = httpc:request(get, Request, [], []).
+
remote_socket_close(Config) when is_list(Config) ->
URL = url(group_name(Config), "/just_close.html", Config),
{error, socket_closed_remotely} = httpc:request(URL).