Commit Graph

52 Commits (0ff1619ea4e2a6702a3fb70135fb656efd64790b)

Author SHA1 Message Date
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 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 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 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 09626bd72a mod_http_files: Respond with a 301 redirect for directories to append a / (fixes relative links) 14 years ago
Matthew Wild aa1d8dd97b mod_http_files: Specify method in HTTP route 14 years ago
Matthew Wild e64c982be4 mod_http_files, net.http.parser: Move path normalization to net.http.parser so that all modules can benefit 14 years ago
Matthew Wild 9b7e2f6d4b mod_http_files: Change option name from http_path to http_files_dir 14 years ago
Matthew Wild 603f08ca84 mod_http_files: Log 404 failure reason 14 years ago
Matthew Wild eb42756646 mod_http_files: Return numeric error codes instead of custom error responses 14 years ago
Kim Alvefur 3fd98627c0 mod_http_files: Rename argument to reflect what it actually is 14 years ago
Kim Alvefur 7ca291e03f mod_httpserver: Rename to mod_http_files 14 years ago
Kim Alvefur e34e6c0a91 mod_httpserver: Adapt to use the new HTTP API 14 years ago