0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 04:10:24 +00:00

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.
This commit is contained in:
Loïc Hoguin 2023-12-15 10:35:37 +01:00
parent 67bd791dcc
commit a72bf4105f
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764

View file

@ -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.