diff options
author | Matthew Holt <[email protected]> | 2023-08-29 09:34:20 -0600 |
---|---|---|
committer | Matthew Holt <[email protected]> | 2023-08-29 09:34:20 -0600 |
commit | ed8bb13c5df7656647ca7fc1fd09237631a6767c (patch) | |
tree | 4119bcd50c6ee18a8fb2d4f268bca7267d8ac5ff /modules/caddyhttp/fileserver/command.go | |
parent | b7e472d54884de4ecd6147784c74fb448180e9d1 (diff) | |
download | caddy-ed8bb13c5df7656647ca7fc1fd09237631a6767c.tar.gz caddy-ed8bb13c5df7656647ca7fc1fd09237631a6767c.zip |
fileserver: Export BrowseTemplate
This allows programs embedding Caddy to customize the browse template.
Diffstat (limited to 'modules/caddyhttp/fileserver/command.go')
-rw-r--r-- | modules/caddyhttp/fileserver/command.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/fileserver/command.go b/modules/caddyhttp/fileserver/command.go index fb145cb06..895c4f06d 100644 --- a/modules/caddyhttp/fileserver/command.go +++ b/modules/caddyhttp/fileserver/command.go @@ -66,7 +66,7 @@ respond with a file listing.`, Short: "Exports the default file browser template", Example: "caddy file-server export-template > browse.html", RunE: func(cmd *cobra.Command, args []string) error { - _, err := io.WriteString(os.Stdout, defaultBrowseTemplate) + _, err := io.WriteString(os.Stdout, BrowseTemplate) return err }, }) |