summaryrefslogtreecommitdiff
path: root/lib/inets/test
diff options
context:
space:
mode:
authorIngela Anderton Andin <ingela@erlang.org>2021-12-03 16:03:22 +0100
committerIngela Anderton Andin <ingela@erlang.org>2021-12-07 11:19:51 +0100
commit64df552786697131e0f353aa0e2f7993e695176d (patch)
tree9f740b3077dfadd5a4bd6d7f1cb29a151b91f5e5 /lib/inets/test
parent3002f55f409f44122d3a45ac53bfd453e9aa2cb2 (diff)
downloaderlang-64df552786697131e0f353aa0e2f7993e695176d.tar.gz
inets: Remove legacy code not longer needed
It could cause erroneous behavior
Diffstat (limited to 'lib/inets/test')
-rw-r--r--lib/inets/test/httpd_SUITE.erl18
1 files changed, 17 insertions, 1 deletions
diff --git a/lib/inets/test/httpd_SUITE.erl b/lib/inets/test/httpd_SUITE.erl
index 1445ff89ac..2757f869ca 100644
--- a/lib/inets/test/httpd_SUITE.erl
+++ b/lib/inets/test/httpd_SUITE.erl
@@ -163,7 +163,8 @@ http_get() ->
max_header,
max_content_length,
ignore_invalid_header,
- ipv6
+ ipv6,
+ same_file_name_dir_name
].
@@ -769,6 +770,21 @@ ipv6(Config) when is_list(Config) ->
end.
%%-------------------------------------------------------------------------
+same_file_name_dir_name() ->
+ [{doc,"Test that URI path that has a filename in it is not interprated as the file"}].
+same_file_name_dir_name(Config) when is_list(Config) ->
+ Version = proplists:get_value(http_version, Config),
+ Host = proplists:get_value(host, Config),
+ Type = proplists:get_value(type, Config),
+ ok = httpd_test_lib:verify_request(Type, Host,
+ proplists:get_value(port, Config),
+ transport_opts(Type, Config),
+ proplists:get_value(node, Config),
+ http_request("GET /index.html/foo.html ", Version, Host),
+ [{statuscode, 404},
+ {version, Version}]).
+
+%%-------------------------------------------------------------------------
chunked_post() ->
[{doc,"Test option max_client_body_chunk"}].
chunked_post(Config) when is_list(Config) ->