Commit Graph

63 Commits (master)

Author SHA1 Message Date
Kim Alvefur f14f1b331f mod_http_files: Fail if missing the required 'http_files_dir' setting 8 months ago
Kim Alvefur 36591d492e mod_http_files: Replace public API with errors 8 months ago
Kim Alvefur 78e7707791 mod_http_files: Log warning about legacy modules using mod_http_files 3 years ago
Kim Alvefur 43351d2b54 Spelling: Fix various spelling mistakes (thanks timeless) 4 years ago
Kim Alvefur 71ad48095d plugins: Use integer config API with interval specification where sensible 2 years ago
Kim Alvefur 98922d54b1 plugins: Prefix module imports with prosody namespace 3 years ago
Kim Alvefur 58663a07ca mod_http_files: Avoid using inode in etag, fix #1498 6 years ago
Kim Alvefur dd7a972108 mod_http_files: Log something if unable to load MIME database 6 years ago
Kim Alvefur 8d82efbca7 mod_http_files: Rename variable to avoid name clash [luacheck] 7 years ago
Kim Alvefur 35efbc8a8d mod_http_files: Silence luacheck warnings related to config variables 7 years ago
Kim Alvefur c4f68640bb mod_http_files: Correct cache insertion (fixes #1130) 8 years ago
Kim Alvefur c2c4f7fbc4 mod_http_files: Use path variant of config option API for http_files_dir 9 years ago
Kim Alvefur 0f64dd00ff mod_http_files: Pass only the name of the path, get_option_path knows how to deal with it 9 years ago
Kim Alvefur 0655146d21 mod_http_files: Use API for config options that are file paths 9 years ago
Kim Alvefur c3d7d52f0d plugins/various: Use type-specific config API 9 years ago
Kim Alvefur 2d847c082f mod_http_files: Send larger files using new file handle API 10 years ago
Kim Alvefur 1d46e953aa mod_http_files: Switch to use util.cache for cache 10 years ago
Anton Shestakov b33e46e4ac mod_http_files: send valid ETag header 10 years ago
Kim Alvefur ae72fdd667 mod_http_files: Preserve a trailing / in paths (fixes #639) 10 years ago
Kim Alvefur e08144940d mod_http_files: Don't prepend / to path twice, sanitize path does this already 10 years ago
Kim Alvefur cbe3f15ee4 mod_http_files: Fix traceback when serving a non-wildcard path (fixes #611) 10 years ago
Matthew Wild cb1eeb2386 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 60ca835146 mod_http_files: Translate forward slashes to local directory separators 10 years ago
Kim Alvefur a29f12e309 mod_http_files: Strip trailing directory separator regardless of directionality of the slash (fixes #545) 10 years ago
Kim Alvefur f666a0d934 mod_http_files: Strip path separator from end of paths, was broken on Windows (thanks Junne) 12 years ago
Florian Zeitz 1d833bb807 Remove all trailing whitespace 13 years ago
Kim Alvefur fdacf5cb34 mod_http_files: Put the MIME type map in a global shared table instead of per-host 13 years ago
Kim Alvefur 6436abbab7 mod_http_files: Put the MIME type map in a global shared table 13 years ago
Kim Alvefur 360e2a5884 mod_http_files: Fix sending Content-Type for index files 13 years ago
Kim Alvefur 59db48f8cb mod_http_files: Allow passing a string to serve() 13 years ago
Kim Alvefur 4130b38a58 mod_http_files: Expose function other modules can use to combine their routes with file paths to serve 13 years ago
Kim Alvefur 87cf947c6c mod_http_files: Work with non-wildcard-routes. Key cache on the original HTTP path. 13 years ago
Kim Alvefur da563cbf87 mod_http_files: Replace file listing with an event, allowing a different plugin to generate it 13 years ago
Kim Alvefur cd27b11d36 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 8bf32f0b1c mod_http_files: Rename config options and variable names 13 years ago
Kim Alvefur 92abfa2d51 mod_http_files: Log the error if we can't open or read a file 13 years ago
Kim Alvefur b1dd7b0be7 mod_http_files: Escape paths in redirects 13 years ago
Kim Alvefur d1880e05fd mod_http_files: Only match on modification date when if-none-match is not present 13 years ago
Kim Alvefur f098458b69 mod_http_files: Only serve cached data if etag is unchanged. 13 years ago
Kim Alvefur 0ff07edb45 mod_http_files: Make sure file extensions are not nil or empty string 13 years ago
Kim Alvefur dc08340e9f mod_http_files: Avoid a bunch of table lookups 13 years ago
Kim Alvefur e104ed8cac mod_http_files: No use in closing a file handle if we couldn't open it 13 years ago
Kim Alvefur eaba58e39b mod_http_files: Compare If-Modified-Since to last modification date 13 years ago
Kim Alvefur 7c7e98953e mod_http_files: Fix caching the stringified directory index 13 years ago
Kim Alvefur 8c8d3b759f mod_http_files: Generate simple directory index. 13 years ago
Kim Alvefur f0449e8428 mod_http_files: Have mimetypes in a shared table. Get mimetypes from /etc/mime.types if exists. 13 years ago
Kim Alvefur f2336aa626 mod_http_files: Cache data read from disk in a weak table 13 years ago
Kim Alvefur bcfa20dc80 mod_http_files: Add Last-Modified header 13 years ago
Kim Alvefur 84dcecb046 mod_http_files: Add ETag and check If-None-Match to allow client-side cache 13 years ago
Kim Alvefur ed92fd78b6 mod_http_files: Return 404 faster if file does not exist 13 years ago