We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81e5318 commit 191dc86Copy full SHA for 191dc86
modules/caddyhttp/fileserver/staticfiles.go
@@ -70,6 +70,10 @@ type FileServer struct {
70
71
// Use redirects to enforce trailing slashes for directories, or to
72
// remove trailing slash from URIs for files. Default is true.
73
+ //
74
+ // Canonicalization will not happen if the last element of the request's
75
+ // path (the filename) is changed in an internal rewrite, to avoid
76
+ // clobbering the explicit rewrite with implicit behavior.
77
CanonicalURIs *bool `json:"canonical_uris,omitempty"`
78
79
// Override the status code written when successfully serving a file.
0 commit comments