fix the custom server header
Signed-off-by: arzumify <jliwin98@danwin1210.de>
This commit is contained in:
parent
dfe1fdf6f0
commit
88bde3f592
2
main.go
2
main.go
|
@ -67,8 +67,8 @@ var (
|
||||||
}
|
}
|
||||||
serverChanger = func(next http.Handler) http.Handler {
|
serverChanger = func(next http.Handler) http.Handler {
|
||||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||||
next.ServeHTTP(w, r)
|
|
||||||
w.Header().Set("Server", "Fulgens HTTP Server")
|
w.Header().Set("Server", "Fulgens HTTP Server")
|
||||||
|
next.ServeHTTP(w, r)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
validate *validator.Validate
|
validate *validator.Validate
|
||||||
|
|
Loading…
Reference in New Issue