mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-28 06:33:47 +03:00
45132c5b24
* Added plaintext support to file_server browser This commit is twofold: First it adds a new optional field, `return_type`, to `browser` for setting the default format of the returned index (html, json or plaintext). This is used when the `Accept` header is set to `/*`. Second, it adds a preliminary `text/plain` support to the `file_server` browser that returns a text representation of the file system, when an `Accept: text/plain` header is present, with the behavior discussed above. * Added more details and better formatting to plaintext browser * Replaced returnType conditions with a switch statement * Simplify --------- Co-authored-by: Matt Holt <mholt@users.noreply.github.com> |
||
---|---|---|
.. | ||
testdata | ||
browse.go | ||
browse.html | ||
browsetplcontext.go | ||
browsetplcontext_test.go | ||
caddyfile.go | ||
command.go | ||
matcher.go | ||
matcher_test.go | ||
staticfiles.go | ||
staticfiles_test.go |