Matthew Holt
4 years ago
No known key found for this signature in database
GPG Key ID: 2A349DD577D586A5
1 changed files with
4 additions and
0 deletions
-
modules/caddyhttp/fileserver/staticfiles.go
|
@ -70,6 +70,10 @@ type FileServer struct { |
|
|
|
|
|
|
|
|
// Use redirects to enforce trailing slashes for directories, or to
|
|
|
// Use redirects to enforce trailing slashes for directories, or to
|
|
|
// remove trailing slash from URIs for files. Default is true.
|
|
|
// remove trailing slash from URIs for files. Default is true.
|
|
|
|
|
|
//
|
|
|
|
|
|
// Canonicalization will not happen if the last element of the request's
|
|
|
|
|
|
// path (the filename) is changed in an internal rewrite, to avoid
|
|
|
|
|
|
// clobbering the explicit rewrite with implicit behavior.
|
|
|
CanonicalURIs *bool `json:"canonical_uris,omitempty"` |
|
|
CanonicalURIs *bool `json:"canonical_uris,omitempty"` |
|
|
|
|
|
|
|
|
// Override the status code written when successfully serving a file.
|
|
|
// Override the status code written when successfully serving a file.
|
|
|