Some minor updates, and get rid of OnLoad/OnUnload

This commit is contained in:
Matthew Holt 2019-05-16 11:46:17 -06:00
parent f9d93ead4e
commit ff5b4639d5
7 changed files with 20 additions and 107 deletions

View file

@ -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