mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Don't send an unnecessary content-type header with cowboy_rest
This commit is contained in:
parent
1e2d59ed26
commit
637a9b3924
2 changed files with 11 additions and 4 deletions
|
@ -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) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue