aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/test/httpc_SUITE.erl
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2013-03-13 13:47:30 +0100
committerFredrik Gustafsson <[email protected]>2013-03-13 13:47:30 +0100
commit09fa1ba9b2f4becf68912bcfc4692d226344d920 (patch)
tree138126046b1aa797ac50b0cee4d54e15881a6100 /lib/inets/test/httpc_SUITE.erl
parent03bc63bed74af4c392d160005b77aca43d4cd4aa (diff)
parent218eee148e1edbe9ea69743525ed31b9272b06af (diff)
downloadotp-09fa1ba9b2f4becf68912bcfc4692d226344d920.tar.gz
otp-09fa1ba9b2f4becf68912bcfc4692d226344d920.tar.bz2
otp-09fa1ba9b2f4becf68912bcfc4692d226344d920.zip
Merge branch 'fredrik/inets/header-error' into maint
* fredrik/inets/header-error: Added guard for invalid field and values in headers
Diffstat (limited to 'lib/inets/test/httpc_SUITE.erl')
-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 8df5964193..c20ec63448 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).