aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-11-14 15:40:09 +0100
committerLoïc Hoguin <[email protected]>2018-11-14 18:04:31 +0100
commit637a9b39249cf573b82d2493b7cedcf324b8537c (patch)
treed60dc7b587565ec107d7ada845d7cc2564fc94cf /test
parent1e2d59ed26a8de423fbaac26b6e9c315d257bfac (diff)
downloadcowboy-637a9b39249cf573b82d2493b7cedcf324b8537c.tar.gz
cowboy-637a9b39249cf573b82d2493b7cedcf324b8537c.tar.bz2
cowboy-637a9b39249cf573b82d2493b7cedcf324b8537c.zip
Don't send an unnecessary content-type header with cowboy_rest
Diffstat (limited to 'test')
-rw-r--r--test/static_handler_SUITE.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/static_handler_SUITE.erl b/test/static_handler_SUITE.erl
index 786438a..d4394c5 100644
--- a/test/static_handler_SUITE.erl
+++ b/test/static_handler_SUITE.erl
@@ -392,9 +392,8 @@ dir_error_directory_slash(Config) ->
dir_error_doesnt_exist(Config) ->
doc("Try to get a file that does not exist."),
- %% @todo Check that the content-type header is removed.
- {404, _Headers, _} = do_get(config(prefix, Config) ++ "/not.found", Config),
-% false = lists:keyfind(<<"content-type">>, 1, Headers),
+ {404, Headers, _} = do_get(config(prefix, Config) ++ "/not.found", Config),
+ false = lists:keyfind(<<"content-type">>, 1, Headers),
ok.
dir_error_dot(Config) ->