13 lines
256 B
Go
13 lines
256 B
Go
|
package middlewares
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
)
|
||
|
|
||
|
func TerryPratchet(next http.Handler) http.Handler {
|
||
|
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||
|
w.Header().Set("X-Clacks-Overhead", "Terry Pratchett")
|
||
|
next.ServeHTTP(w, r)
|
||
|
})
|
||
|
}
|