From 37d050922b6e26cec8ed3ebd2fcc88440d051597 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Thu, 17 Mar 2016 16:42:28 -0600 Subject: [PATCH] Fix typo, clarify readme --- dist/init/README.md | 13 ++++++++++++- middleware/templates/templates.go | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/dist/init/README.md b/dist/init/README.md index bfc1ef3a2..9dd41260c 100644 --- a/dist/init/README.md +++ b/dist/init/README.md @@ -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. \ No newline at end of file diff --git a/middleware/templates/templates.go b/middleware/templates/templates.go index bc48ac45d..c8c08922b 100644 --- a/middleware/templates/templates.go +++ b/middleware/templates/templates.go @@ -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)