aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-12-06 10:54:23 +0100
committerLoïc Hoguin <[email protected]>2017-12-06 10:54:23 +0100
commit2eb3e3f994e464ae2678f7c3d321213e5eec9ad4 (patch)
tree3b91f2e0da3d4fc17c7da0704c0f471c67e5ad6a /test
parentdd002b81417dabac10daf28cbab00179e7bdf95f (diff)
downloadcowboy-2eb3e3f994e464ae2678f7c3d321213e5eec9ad4.tar.gz
cowboy-2eb3e3f994e464ae2678f7c3d321213e5eec9ad4.tar.bz2
cowboy-2eb3e3f994e464ae2678f7c3d321213e5eec9ad4.zip
Also disable the TRACE method entirely
Diffstat (limited to 'test')
-rw-r--r--test/rfc7231_SUITE.erl10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/rfc7231_SUITE.erl b/test/rfc7231_SUITE.erl
index bbd7ec5..feb53b9 100644
--- a/test/rfc7231_SUITE.erl
+++ b/test/rfc7231_SUITE.erl
@@ -151,8 +151,14 @@ method_options(Config) ->
%method_options_asterisk(Config) ->
%method_options_content_length_0(Config) ->
-%% @todo Should probably disable TRACE entirely until they're implemented.
-%method_trace(Config) ->
+method_trace(Config) ->
+ doc("The TRACE method is currently not implemented. (RFC7231 4.3.8)"),
+ ConnPid = gun_open(Config),
+ Ref = gun:request(ConnPid, <<"TRACE">>, "/", [
+ {<<"accept-encoding">>, <<"gzip">>}
+ ]),
+ {response, fin, 501, _} = gun:await(ConnPid, Ref),
+ ok.
%% Request headers.