diff options
author | Jean-Sébastien Pédron <[email protected]> | 2016-12-29 15:48:06 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2017-01-31 16:19:45 +0100 |
commit | 98c2bc64e5a858db68f260ddd04fed7cee3d80f8 (patch) | |
tree | 7e9c8420fca29fca6027a08d310cbd25aa69e45a /test/http_SUITE_data/http_errors.erl | |
parent | a62cc4260fd071d522d962ea0a302f6f995152aa (diff) | |
download | cowboy-98c2bc64e5a858db68f260ddd04fed7cee3d80f8.tar.gz cowboy-98c2bc64e5a858db68f260ddd04fed7cee3d80f8.tar.bz2 cowboy-98c2bc64e5a858db68f260ddd04fed7cee3d80f8.zip |
cowboy_static: Add support for files in EZ archives
If cowboy_static is initialized with `{priv_file, ...}` or `{priv_dir,
...}`, it is now able to read files from Erlang application .ez
archives.
When serving a file from an archive, the #file_info{} comes from the
archive, not the contained file, except for the size and type. The
erl_prim_loader module is used to read the latter's #file_info{} and the
actual file content (ie. sendfile(2) is not used in this case).
(cherry picked from commit 2166733628bbab0eb77eeed58bdf204727c48ec6)
Diffstat (limited to 'test/http_SUITE_data/http_errors.erl')
0 files changed, 0 insertions, 0 deletions