aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_http_files.lua
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* mod_http_files: Return 404 faster if file does not existKim Alvefur2012-12-111-3/+9
|
* mod_http_files: Configurable number of index files to check forKim Alvefur2012-12-111-2/+5
|
* mod_http_files: Respond with a 301 redirect for directories to append a / ↵Kim Alvefur2012-05-121-2/+9
| | | | (fixes relative links)
* mod_http_files: Specify method in HTTP routeMatthew Wild2012-04-271-1/+1
|
* mod_http_files, net.http.parser: Move path normalization to net.http.parser ↵Matthew Wild2012-04-261-23/+1
| | | | so that all modules can benefit
* mod_http_files: Change option name from http_path to http_files_dirMatthew Wild2012-04-261-1/+1
|
* mod_http_files: Log 404 failure reasonMatthew Wild2012-04-261-0/+1
|
* mod_http_files: Return numeric error codes instead of custom error responsesMatthew Wild2012-04-261-12/+4
|
* mod_http_files: Rename argument to reflect what it actually isKim Alvefur2012-04-241-3/+3
|
* mod_httpserver: Rename to mod_http_filesKim Alvefur2012-04-231-0/+86