aboutsummaryrefslogtreecommitdiffstats
path: root/test/static_handler_SUITE.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2023-12-15 10:35:37 +0100
committerLoïc Hoguin <[email protected]>2023-12-15 10:35:37 +0100
commita72bf4105f6751662ff00fed85bbdc22ee9c2b80 (patch)
treea6695f3c51a059e2b49f2164b34ebdb824ef4086 /test/static_handler_SUITE.erl
parent67bd791dcc6138758a9f4d0a071f2369301c7373 (diff)
downloadcowboy-a72bf4105f6751662ff00fed85bbdc22ee9c2b80.tar.gz
cowboy-a72bf4105f6751662ff00fed85bbdc22ee9c2b80.tar.bz2
cowboy-a72bf4105f6751662ff00fed85bbdc22ee9c2b80.zip
Fix static_handler suite code path
A future OTP release will use 'strict' code path by default. This change ensures it works both for old and new OTP.
Diffstat (limited to 'test/static_handler_SUITE.erl')
-rw-r--r--test/static_handler_SUITE.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/static_handler_SUITE.erl b/test/static_handler_SUITE.erl
index 71a9619..7076280 100644
--- a/test/static_handler_SUITE.erl
+++ b/test/static_handler_SUITE.erl
@@ -65,7 +65,7 @@ init_per_suite(Config) ->
%% Add a simple Erlang application archive containing one file
%% in its priv directory.
true = code:add_pathz(filename:join(
- [config(data_dir, Config), "static_files_app", "ebin"])),
+ [config(data_dir, Config), "static_files_app.ez", "static_files_app", "ebin"])),
ok = application:load(static_files_app),
%% A special folder contains files of 1 character from 1 to 127
%% excluding / and \ as they are always rejected.