Commit Graph

57 Commits (vault/master)

Author SHA1 Message Date
Kim Alvefur 43560d2b3d mod_http_files: Avoid using inode in etag, fix #1498 6 years ago
Kim Alvefur f17e946824 mod_http_files: Avoid using inode in etag, fix #1498 6 years ago
Kim Alvefur 2d57486958 mod_http_files: Avoid using inode in etag, fix #1498 6 years ago
Kim Alvefur eb54e65e68 mod_http_files: Log something if unable to load MIME database 6 years ago
Kim Alvefur 89e98bf240 mod_http_files: Rename variable to avoid name clash [luacheck] 7 years ago
Kim Alvefur d859c3c84f mod_http_files: Silence luacheck warnings related to config variables 7 years ago
Kim Alvefur 0abbfdab88 mod_http_files: Correct cache insertion (fixes #1130) 8 years ago
Kim Alvefur db1c5183b1 mod_http_files: Use path variant of config option API for http_files_dir 9 years ago
Kim Alvefur cf02edf36e mod_http_files: Pass only the name of the path, get_option_path knows how to deal with it 9 years ago
Kim Alvefur 1483204b10 mod_http_files: Use API for config options that are file paths 9 years ago
Kim Alvefur fb749e2076 plugins/various: Use type-specific config API 9 years ago
Kim Alvefur 1e1c4c0cb6 mod_http_files: Send larger files using new file handle API 10 years ago
Kim Alvefur d61a15295b mod_http_files: Switch to use util.cache for cache 10 years ago
Anton Shestakov 368a4d0cf8 mod_http_files: send valid ETag header 10 years ago
Kim Alvefur 31c0a34728 mod_http_files: Preserve a trailing / in paths (fixes #639) 10 years ago
Kim Alvefur 6ee217ad11 mod_http_files: Don't prepend / to path twice, sanitize path does this already 10 years ago
Kim Alvefur d4ec0ae3cd mod_http_files: Fix traceback when serving a non-wildcard path (fixes #611) 10 years ago
Matthew Wild b7ed261e7d mod_http_files: Santize the path relative to our base URL before translating it to a filesystem path, fixes a relative path traversal vulnerability 10 years ago
Kim Alvefur b7b28af321 mod_http_files: Translate forward slashes to local directory separators 10 years ago
Kim Alvefur 38b909e686 mod_http_files: Strip trailing directory separator regardless of directionality of the slash (fixes #545) 10 years ago
Kim Alvefur a8869fb516 mod_http_files: Strip path separator from end of paths, was broken on Windows (thanks Junne) 12 years ago
Florian Zeitz 4b618a8727 Remove all trailing whitespace 13 years ago
Kim Alvefur 85d4285a35 mod_http_files: Put the MIME type map in a global shared table instead of per-host 13 years ago
Kim Alvefur b11b8a61b4 mod_http_files: Put the MIME type map in a global shared table 13 years ago
Kim Alvefur bf95479185 mod_http_files: Fix sending Content-Type for index files 13 years ago
Kim Alvefur 4c66b3e284 mod_http_files: Allow passing a string to serve() 13 years ago
Kim Alvefur 29bdb62b65 mod_http_files: Expose function other modules can use to combine their routes with file paths to serve 13 years ago
Kim Alvefur 0865e34268 mod_http_files: Work with non-wildcard-routes. Key cache on the original HTTP path. 13 years ago
Kim Alvefur 88d386b8dd mod_http_files: Replace file listing with an event, allowing a different plugin to generate it 13 years ago
Kim Alvefur ab4685492f mod_http_files: Export function can be used by other modules to serve files. Don't serve files by default unless http_files_dir is set 13 years ago
Kim Alvefur d40909324f mod_http_files: Rename config options and variable names 13 years ago
Kim Alvefur 3da97b1e1e mod_http_files: Log the error if we can't open or read a file 13 years ago
Kim Alvefur 5c0e25da68 mod_http_files: Escape paths in redirects 13 years ago
Kim Alvefur e19d7ebdde mod_http_files: Only match on modification date when if-none-match is not present 13 years ago
Kim Alvefur a9937ee757 mod_http_files: Only serve cached data if etag is unchanged. 13 years ago
Kim Alvefur 19473b8b72 mod_http_files: Make sure file extensions are not nil or empty string 13 years ago
Kim Alvefur bf297afdb6 mod_http_files: Avoid a bunch of table lookups 13 years ago
Kim Alvefur 9a2939f64a mod_http_files: No use in closing a file handle if we couldn't open it 13 years ago
Kim Alvefur cf3f554dbc mod_http_files: Compare If-Modified-Since to last modification date 13 years ago
Kim Alvefur 3d23a687aa mod_http_files: Fix caching the stringified directory index 13 years ago
Kim Alvefur b1a53ef20d mod_http_files: Generate simple directory index. 13 years ago
Kim Alvefur e33b0e3602 mod_http_files: Have mimetypes in a shared table. Get mimetypes from /etc/mime.types if exists. 13 years ago
Kim Alvefur ddaa8006bc mod_http_files: Cache data read from disk in a weak table 13 years ago
Kim Alvefur 3860775600 mod_http_files: Add Last-Modified header 13 years ago
Kim Alvefur 48bb0d814e mod_http_files: Add ETag and check If-None-Match to allow client-side cache 13 years ago
Kim Alvefur 896dda6265 mod_http_files: Return 404 faster if file does not exist 13 years ago
Kim Alvefur d623c4a3e2 mod_http_files: Configurable number of index files to check for 13 years ago
Kim Alvefur 9163493840 mod_http_files: Try to determine which module using serve() needs updating 7 years ago
Kim Alvefur 568fc99fea mod_http_files: Use net.http.files 7 years ago
Kim Alvefur 09626bd72a mod_http_files: Respond with a 301 redirect for directories to append a / (fixes relative links) 14 years ago