mirror of
https://github.com/caddyserver/caddy.git
synced 2025-10-19 07:43:17 +00:00
Some minor updates, and get rid of OnLoad/OnUnload
This commit is contained in:
parent
f9d93ead4e
commit
ff5b4639d5
7 changed files with 20 additions and 107 deletions
|
@ -25,7 +25,7 @@ type Static struct {
|
|||
func (s Static) ServeHTTP(w http.ResponseWriter, r *http.Request) error {
|
||||
repl := r.Context().Value(ReplacerCtxKey).(*Replacer)
|
||||
|
||||
// close the connection
|
||||
// close the connection after responding
|
||||
r.Close = s.Close
|
||||
|
||||
// set all headers, with replacements
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue