aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_http_files.lua
Commit message (Collapse)AuthorAgeFilesLines
* plugins: Prefix module imports with prosody namespaceKim Alvefur2023-03-241-3/+3
|
* mod_http_files: Log warning about legacy modules using mod_http_filesKim Alvefur2022-07-171-2/+1
| | | | | | | | | It is time. Most community modules should have been adjusted to work with the new (net.http.files) way. At some point this usage should be prevented. Related to #1765
* Spelling: Fix various spelling mistakes (thanks timeless)Kim Alvefur2022-03-071-2/+2
| | | | | | Words, sometimes I wonder how they even work Maybe I missed something.
* mod_http_files: Log something if unable to load MIME databaseKim Alvefur2019-12-231-1/+3
| | | | | Not that much to worry about, the most common file types are included in the code above.
* mod_http_files: Try to determine which module using serve() needs updatingKim Alvefur2019-04-051-2/+8
|
* mod_http_files: Use net.http.filesKim Alvefur2019-04-051-136/+33
|
* mod_http_files: Rename variable to avoid name clash [luacheck]Kim Alvefur2018-10-101-3/+3
|
* mod_http_files: Silence luacheck warnings related to config variablesKim Alvefur2018-10-101-0/+1
|
* mod_http_files: Correct cache insertion (fixes #1130)Kim Alvefur2018-04-171-1/+1
|
* mod_http_files: Use path variant of config option API for http_files_dirKim Alvefur2017-03-211-1/+1
|
* mod_http_files: Pass only the name of the path, get_option_path knows how to ↵Kim Alvefur2017-03-171-1/+1
| | | | deal with it
* mod_http_files: Use API for config options that are file pathsKim Alvefur2017-03-161-1/+1
|
* plugins/various: Use type-specific config APIKim Alvefur2017-03-161-1/+1
|
* mod_http_files: Send larger files using new file handle APIKim Alvefur2016-07-111-7/+12
|
* mod_http_files: Switch to use util.cache for cacheKim Alvefur2016-07-111-3/+4
|
* mod_http_files: send valid ETag headerAnton Shestakov2016-07-091-1/+1
| | | | | RFC 2616 section 14 (header field definitions) shows that ETag header content should be wrapped in double quotes.
* Merge 0.9->0.10Kim Alvefur2016-03-031-3/+8
|\
| * mod_http_files: Preserve a trailing / in paths (fixes #639)Kim Alvefur2016-03-031-0/+3
| |
| * mod_http_files: Don't prepend / to path twice, sanitize path does this alreadyKim Alvefur2016-03-031-1/+1
| |
| * mod_http_files: Fix traceback when serving a non-wildcard path (fixes #611)Kim Alvefur2016-03-031-2/+4
| |
* | Merge 0.9->0.10Kim Alvefur2016-01-081-1/+33
|\|
| * mod_http_files: Santize the path relative to our base URL before translating ↵Matthew Wild2016-01-071-1/+33
| | | | | | | | it to a filesystem path, fixes a relative path traversal vulnerability
* | Merge 0.9->0.10Kim Alvefur2015-09-271-2/+2
|\|
| * mod_http_files: Translate forward slashes to local directory separatorsKim Alvefur2015-09-261-1/+1
| |
| * mod_http_files: Strip trailing directory separator regardless of ↵Kim Alvefur2015-09-261-1/+1
| | | | | | | | directionality of the slash (fixes #545)
* | Merge 0.9->0.10Kim Alvefur2014-03-091-1/+2
|\|
| * mod_http_files: Strip path separator from end of paths, was broken on ↵Kim Alvefur2014-03-091-1/+2
| | | | | | | | Windows (thanks Junne)
* | Remove all trailing whitespaceFlorian Zeitz2013-08-091-1/+1
|/
* mod_http_files: Put the MIME type map in a global shared table instead of ↵Kim Alvefur2013-06-281-2/+2
| | | | per-host
* mod_http_files: Fix sending Content-Type for index filesKim Alvefur2012-12-231-1/+1
|
* mod_http_files: Allow passing a string to serve()Kim Alvefur2012-12-231-1/+4
|
* mod_http_files: Expose function other modules can use to combine their ↵Kim Alvefur2012-12-211-0/+8
| | | | routes with file paths to serve
* mod_http_files: Work with non-wildcard-routes. Key cache on the original ↵Kim Alvefur2012-12-211-5/+5
| | | | HTTP path.
* mod_http_files: Replace file listing with an event, allowing a different ↵Kim Alvefur2012-12-211-19/+7
| | | | plugin to generate it
* mod_http_files: Export function can be used by other modules to serve files. ↵Kim Alvefur2012-12-211-73/+88
| | | | Don't serve files by default unless http_files_dir is set
* mod_http_files: Rename config options and variable namesKim Alvefur2012-12-211-5/+5
|
* mod_http_files: Log the error if we can't open or read a fileKim Alvefur2012-12-211-1/+2
|
* mod_http_files: Escape paths in redirectsKim Alvefur2012-12-211-1/+4
|
* mod_http_files: Only match on modification date when if-none-match is not ↵Kim Alvefur2012-12-211-1/+1
| | | | present
* mod_http_files: Only serve cached data if etag is unchanged.Kim Alvefur2012-12-211-3/+3
|
* mod_http_files: Make sure file extensions are not nil or empty stringKim Alvefur2012-12-211-2/+2
|
* mod_http_files: Avoid a bunch of table lookupsKim Alvefur2012-12-211-8/+12
|
* mod_http_files: No use in closing a file handle if we couldn't open itKim Alvefur2012-12-211-3/+5
|
* mod_http_files: Compare If-Modified-Since to last modification dateKim Alvefur2012-12-161-4/+7
|
* mod_http_files: Fix caching the stringified directory indexKim Alvefur2012-12-161-1/+1
|
* mod_http_files: Generate simple directory index.Kim Alvefur2012-12-111-2/+23
|
* mod_http_files: Have mimetypes in a shared table. Get mimetypes from ↵Kim Alvefur2012-12-111-10/+28
| | | | /etc/mime.types if exists.
* mod_http_files: Cache data read from disk in a weak tableKim Alvefur2012-12-111-13/+18
|
* mod_http_files: Add Last-Modified headerKim Alvefur2012-12-111-0/+2
|
* mod_http_files: Add ETag and check If-None-Match to allow client-side cacheKim Alvefur2012-12-111-0/+7
|