From e94e90b046a03002192c3e5bbc101d97c479127b Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Tue, 4 Aug 2015 18:32:27 -0600 Subject: [PATCH] Add new docker link, DO link, and enhanced comment --- README.md | 4 +++- middleware/replacer.go | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a71bdea19..c17b3d0a6 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ Caddy is available as a Docker container from any of these sources: - [abiosoft/caddy](https://registry.hub.docker.com/u/abiosoft/caddy/) - [darron/caddy](https://registry.hub.docker.com/u/darron/caddy/) - [jumanjiman/caddy](https://registry.hub.docker.com/u/jumanjiman/caddy/) - +- [zenithar/nano-caddy](https://registry.hub.docker.com/u/zenithar/nano-caddy/) #### 3rd-party libraries @@ -118,6 +118,8 @@ This project would not be what it is without your help. Please see the [contribu Thanks for making Caddy -- and the Web -- better! +Special thanks to [![DigitalOcean](http://i.imgur.com/sfGr0eY.png)](https://www.digitalocean.com) for hosting the Caddy project. + diff --git a/middleware/replacer.go b/middleware/replacer.go index 33ae28825..df1f6e010 100644 --- a/middleware/replacer.go +++ b/middleware/replacer.go @@ -24,7 +24,9 @@ type replacer struct { // NewReplacer makes a new replacer based on r and rr. // Do not create a new replacer until r and rr have all // the needed values, because this function copies those -// values into the replacer. +// values into the replacer. rr may be nil if it is not +// available. emptyValue should be the string that is used +// in place of empty string (can still be empty string). func NewReplacer(r *http.Request, rr *responseRecorder, emptyValue string) Replacer { rep := replacer{ replacements: map[string]string{