mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-29 04:10:16 +08:00
Fix typo, clarify readme
This commit is contained in:
parent
4f5fe2de24
commit
37d050922b
13
dist/init/README.md
vendored
13
dist/init/README.md
vendored
|
@ -1 +1,12 @@
|
|||
This folder provides init/service scripts for various Linux and BSD distributions.
|
||||
Init/Service Scripts
|
||||
====================
|
||||
|
||||
This folder contains init/service scripts for using Caddy on various Linux and BSD distributions. They are created and maintained by the community.
|
||||
|
||||
## Getting Help
|
||||
|
||||
Different scripts have different maintainers; please consult the comments in the file and any README for assistance setting it up. Do not open an issue on the Caddy project about these scripts; instead, to ask a question or suggest a change, please contact the maintainer of the script directly.
|
||||
|
||||
## Disclaimer
|
||||
|
||||
The files contained herein are not officially supported by the Caddy project author and/or contributors, and as such, the files are not endorsed by the same. The Caddy project author and its contributors are not responsible for the function or malfunction of these scripts/files, or any uintended consequences to your system or website in attempting to set up Caddy. Users are expected to know how to administer their system, and these files should be considered as only a guide or suggestion for using Caddy in certain environments.
|
|
@ -63,7 +63,7 @@ func (t Templates) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error
|
|||
|
||||
templateInfo, err := os.Stat(templatePath)
|
||||
if err == nil {
|
||||
// add the Last-Modified header if we were able to optain the information
|
||||
// add the Last-Modified header if we were able to read the stamp
|
||||
middleware.SetLastModifiedHeader(w, templateInfo.ModTime())
|
||||
}
|
||||
buf.WriteTo(w)
|
||||
|
|
Loading…
Reference in New Issue
Block a user